Home > CMS Tutorial > DEDECMS > body text

What is the LOOP mark of the Dream Weaver System label code?

藏色散人
Release: 2019-11-16 09:46:55
Original
1905 people have browsed it

What is the LOOP mark of the Dream Weaver System label code?

What is the LOOP tag of the DreamWeaver system tag code?

Dreamweaver DEDECMS system tag code description and usage of LOOP mark

Recommended learning: dedecms tutorial

[LOOP mark]

Function description: used to call data from any table, generally used to call operations such as forum posts

Applicable scope: all templates

(1) Basic syntax

{dede:loop table=' sort='' row='' if=''} 
底层模板
{/dede:loop}
Copy after login

(2) Attribute

[1] table represents the queried data table

[2] sort field used for sorting

[3] row return Number of results

[4] if query condition

(3) Underlying template variable

The underlying template variable of this mark is all the fields of the queried table

Example: Get the latest topic posts of Phpwind forum

{dede:loop table=&#39;pw_threads&#39; sort=&#39;tid&#39; row=&#39;8&#39; if=&#39;&#39;}<br> 
<a href="/bbs/read.php?tid=[field:tid/]"> ·[field:subject function="cn_substr(&#39;@me&#39;,30)"/]  
([field:lastpost function="date(&#39;m-d H:M&#39;,&#39;@me&#39;)"/])</a> <br/> 
{/dede:loop}
Copy after login

The above is the detailed content of What is the LOOP mark of the Dream Weaver System label code?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template