Home > Article > CMS Tutorial > 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}
(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='pw_threads' sort='tid' row='8' if=''}<br> <a href="/bbs/read.php?tid=[field:tid/]"> ·[field:subject function="cn_substr('@me',30)"/] ([field:lastpost function="date('m-d H:M','@me')"/])</a> <br/> {/dede:loop}
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!