The format of tag writing in the zhimeng template and precautions

Source: Internet
Author: User

I. Writing format and precautions of the woven dream template Tag: 1. writing format: ① {dede: Tag name parameter = 'value'} underlying template {/dede: Tag name} ② {dede: tag name parameter = 'value'/} 2. note: ① the label writing must be in the halfwidth state. ② For example, a label call from 1 to ① must have a closed label starting with the label name and exist in the table of the underlying template; ③ For example, 1-② There is no underlying template, and no closed tag exists; his style is written into the corresponding tag source code. Ii. Concepts and calling methods of the underlying template: 1. What is the underlying template? The underlying template is not a template! It is the specific content to be displayed on the actual page; 2. application of the underlying template: Call method [field: field name/] instance: {dede: arclist row = '6' titlelen = '20'} <li> <a href = "[field: arcurl/]" title = "[field: fulltitle/] "> [field: title/] </a> </li> {/dede: arclist} 3. usage of the custom macro tag and Smart Tag Wizard: {dede: mytag name = 'tagname' ismake = 'yes/No'/} 4. SQL Tag: 1. SQL label description: SQL label is a kind of advanced application that directly uses SQL query statements for database queries and outputs. It features more flexibility, convenience, and power. SQL label format: {dede: SQL SQL = "complete SQL query statement"} [field: field name/] {/dede: SQL} 3. SQL call example: {dede: SQL = "select * From dede_archives where typeid = 10 limit 0, 10"} [field: title/] {/dede: SQL} V: other common labels 1. Q & A tag ask {dede: ask row = '10' qtype = 'OK' tid = '0' titlelen = '40'} [field: title/] {/dede: ask} parameter: row: number of items qtype: Problem type new commend OK notok high underlying field: tid tidname title url typeurl 2. link flink {dede: flink row = '10' type = 'image'/} parameter: row: quantity qtype: output type textall text image titlelen: Maximum site characters linktype: link location 1: inner page 2: homepage 0: Unaudited typeid: site type typeid = "type ID"

Related Article

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.