Macro in the source code of dedeCMS: <phpecho $ pai_templeturl;?> {Dede: global. pai_templeturl /}

Source: Internet
Author: User
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&nbsp; 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 .... ^-^ =

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.