Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the specification for the writing format of dream template labels?

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail what is the writing format of the dream template label. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

What is the specification for the writing format of dream template labels?

First, the writing format and notes of the dream template label:

1. Writing format:

① {dede: tag signature parameter = 'value' parameter = 'value'} underlying template {/ dede: tag signature}

② {dede: signature parameter = 'value' /}

two。 Note:

① tags must be written in half-width state.

Label calls to ② such as 1-① must have a closed tag at the beginning of the signature and exist in the underlying template.

③ such as 1-② has no underlying template representation, and there is no closed tag; its style is written into the corresponding tag source code.

Second, the concept and calling method of the underlying template:

1. What is the underlying template?

The underlying template is not a template! He is the specific content to be displayed on the actual page.

two。 Application of underlying template:

Calling method [field: field name /]

Example:

{dede:arclist row='6' titlelen='20'} [field:title/] {/ dede:arclist}

Third, the use of custom macro tags and smart tag wizards

Call method:

{dede:mytag name=' tag name 'ismake='yes/no'/}

4. SQL tag:

Introduction to 1.SQL tags:

SQL tag is an advanced application that directly uses SQL query statements to query the database and output. It is characterized by more flexibility, convenience and power.

2.SQL label writing format:

{dede:sql sql= "complete SQL query statement"}

[field: field name /]

{/ dede:sql}

Example of 3.SQL call:

{dede:sql sql= "select * From dede_archives where typeid = 10 limit 0pm 10"}

[field:title/]

{/ dede:sql}

Five: other commonly used labels

1. Question and answer tag ask

{dede:ask row='10' qtype='ok' tid='0' titlelen='40'}

[field:title/]

{/ dede:ask}

Parameters:

Row: number of entries

Qtype: question type new commend ok notok high

Underlying fields:

Tid tidname title url typeurl

two。 Friendship link flink

{dede:flink row='10' type='image'/}

Parameters:

Row: quantity

Qtype: output type textall text image

Titlelen: the maximum number of characters in the site

Linktype: link location 1 is inside page 2 is home page 0 is unaudited

Typeid: site type typeid= "type ID"

On the dream template label writing format what is shared here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report