Where the template is located in umi cms?

you need to add just a little js/css on the website
how is it possible to do much unclear kms
July 2nd 19 at 13:23
2 answers
July 2nd 19 at 13:25
Solution
In each case of use UMI.CMS can be configured to use different templates, as location and type of standardization.

Refer to the module configuration Structure, to indicate the type of the template and the name of the template file.

To standard delivery, using the template "Modern online store", the location of the template in /templates/demodizzy/ then, depending on the type of standardization:

XSLT /templates/demodizzy/xslt/layouts/default.xsl
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0">

 <xsl:template match="/" mode="layout">


...
 <script src="/templates/demodizzy/js/script.js"></script>
 <link rel="stylesheet" href="/templates/demodizzy/css/styles.css">

...

</xsl:template>

</xsl:stylesheet>


TPL /templates/demodizzy/tpls/content/inner.tpl



...
 <script src="/templates/demodizzy/js/script.js"></script>
 <link rel="stylesheet" href="/templates/demodizzy/css/styles.css">

...


PHP /templates/demodizzy/php/default.phtml
<?php /** @var umiTemplaterPHP $this */ ?>
<?php /** @var array $variables */ ?>
<?php
...
?>


...
 <script src="/templates/demodizzy/js/script.js"></script>
 <link rel="stylesheet" href="/templates/demodizzy/css/styles.css">

...
there is no General /templates I have - Austyn61 commented on July 2nd 19 at 13:28
: That's why I say that information is not enough. Look in the settings of the module Structure specifies the type of the template and the name of the template file. - Arne.Altenwerth63 commented on July 2nd 19 at 13:31
Pattern design in the Russian language is written to find it is unclear how - Austyn61 commented on July 2nd 19 at 13:34
found, thank you! - Austyn61 commented on July 2nd 19 at 13:37
July 2nd 19 at 13:27
go to the module configuration structure, and there is a list of templates.
Usually all the files relating to the template are in the folder /templates/name/
there is no General /templates I have - Austyn61 commented on July 2nd 19 at 13:30
Do you mean the old version, see which engine you have. look in the respective folders
/tpls/ or /xsltTpls/ - Arne.Altenwerth63 commented on July 2nd 19 at 13:33
Yes there are, but inside a lot of folders - Austyn61 commented on July 2nd 19 at 13:36
If you need to change only css and js, their location can be viewed directly from the code on the page. Templates then nothing to do with - Austyn61 commented on July 2nd 19 at 13:39
I would like to connect to the header or the basement of another file + js - Austyn61 commented on July 2nd 19 at 13:42

Find more questions by tags UMI.CMS