Macro in dedeCMS source code for the first time: & lt ;? Phpecho $ pai_templeturl ;? & Gt; {dede: global. cfg_templeturl/} reprinted. please indicate that the macro is referenced at http://blog.csdn.net/chenyujing5678 in the source code of dedeCMS for the first time: {Dede: global. pai_templeturl /}
Reprinted please indicate it is referenced in http://blog.csdn.net/chenyujing5678
Welcome!
I. problem description
I joined the template in DedeCMS5.5GBK today and found that the newly added template looks like this:
II. cause analysis
Because my template uses DIV + CSS, this is a layout disorder problem, so it should be a CSS file path error.
Because I want to install the heightsearch.htm in the templets/plus/folder, I went in to view the heightsearch.htm file under the templets/plus/folder.
I saw this sentence:
It turns out that the uploader uploads the source code of his website without modification. even if I find the reason, what should I do?
3. Finally, I found the heightsearch.htm I did not replace.
You can see:
The actual path of dedecms.css is:
Summary: Is a macro in dedeCMS, which is equivalent to D: \ NetworkMarketing \ sourceCode \ www \ uploads_v5.5GBK \ templets;
Now we have changed all the http://www.500gm.com/img in heightsearch.htm No? Let's see it!
..... It didn't work after the test. what is it? I changed the wrong file and suddenly realized how the change of hightsearch.htm could affect the main page?
()
2. Find The index.htm file
From the template, I want to replace the corresponding index.htm with the template index.htm. Let's take a look at the differences between the two index.htm:
NewIndex. The. css path in htmis relatively referenced.
In the original index.htmfile, the. css path carries the dedeCMS macro.
As you can see, we have to modify the relative path in the new index.htm, so add {dede: global. pai_templeturl/} directly.
(This macro corresponds to the preceding Similar. for the meaning of this macro, please refer to my article < >)
Effect! Haha succeeded .... ^-^ =