Kill lui lei Dog---CMS---10-dedecms inside the label

Source: Internet
Author: User

In Dedecms the label is divided into two categories, single and double tags, and dede inside the label can only be used in the template file, that is, the templets directory under the template file, can not be used directly in PHP files.

Single Label:

Syntax:{dede: label Name Property name 1= Property value 1 Property name 2= Property value 2/}

Like what:

{dede:global.cfg_templets_skin/} {dede:include filename= "head.htm"/}

Single label, most of which is the global variable defined by the common.inc.php file under the include directory,

A test file can be created to test the output of the label:

And then go back to the background and change the homepage to test.htm for testing.

Then visit: http://www.dets.com/index.html

This makes it easy to know your address on that page ....

Such as:

So we can know that the label inside the DEDECMS is pointing there ....

Double label

A more important label, a double tag is the tag that pulls the data out of the database,

(1) syntax format:

{dede: label name attribute 1= Property value 1 Property 2= Property value 2}

[Field: field name /]

{/dede: tag name }

Such as:

     <ulclass= "D2 Ico2">{dede:arclist flag= ' a ' row= ' 6 ' orderby= ' pubdate '}<Li><ahref= "[field:arcurl/]">[field:title/]</a></Li>{/dede:arclist}</ul>

(2) What are the double tags in dede?

In the background-"template -" Default template Management -Click on a template page to modify.

After entering, he will list a large number of current dede inside of the double label, we commonly used is not too much, as shown below:

Click on a random, he has a case description, as follows:

(3) Each double label corresponds to a label file, when the static page is generated, the resolution of which label, run which tag file, these files are present in this folder:

Double tags are generally obtained from the database to obtain data.

We set up a test file to test whether the tag file was run when the static page was currently generated.

And then we're going to make a change to his double-label file.

Then go back to the background to click on the Update homepage, his website will soon burst out just executed SQL statement

Kill lui lei Dog---CMS---10-dedecms inside the label

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.