Phpcms tag third play, phpcms tag
{CHARSET} ------------------------------------- character set (gbk or UTF-8)
{If isset ($ SEO ['title']) &! Empty ($ SEO ['title'])}
{$ SEO ['title']} {/if}
{$ SEO ['site _ title']}
{$ SEO ['keyword']}
{$ SEO ['description']}
----------------------------------- Title and title seo Optimization
{Pc: content action = "position" posid = "9" order = "id" num = "10" cache = "3600 "}
Pc tag {pc: content parameter = "parameter value" parameter name = "parameter value" parameter name = "parameter value "}
{Loop $ data $ k $ v}
<Li> <a href = "{$ v [url]}" >{$ v [title]} </a> </li>
{/Loop}
Pc tag Value
Action = "position" ------------- dialog box type = "content recommendation bit list"
Posid = "9" -------------------- recommended bit ID = "9"
Order = "id" -------------------- sorting type = "id"
Num = "10" ------------------- number of data calls = "10"
Cache = "3600" ---------------- cache = "3600" milliseconds
{APP_PATH} ----------------- Project address
{Get_siteid ()}----------------
{IMG_PATH }-----------------
Action = "hits" ranking, hotspot, etc.
Action = "lists" is mainly used for list and so on.
Catid = "$ catid" specifies a number for the current topic ID, that is, the specified topic ID
Num = "" number of articles called
Order = "id DESC" sort by ID in descending order
Order = "id ASC" in ascending order of ID
Order = "views DESC"
Sort = ""
Thumb = "1" thumbnail
Return = ""
Page = "$ page" requires Paging
This occurs every time the list contains several rows.
{If $ num % 2 = 0} {/if}
Loop tag
------ {Loop $ data $ r} {/loop}
------ {Loop $ info $ r} {/loop}
Date ------ {date ('Y-m-d H: I: s', $ r [inputtime])}
Article link ------ {$ r [url]}
Article title ------ {$ r [title]}
Subtitle capture ------ {str_cut ($ r [title], 40 ,'...')}
Thumbnail ------ use {thumb ($ r [thumb], 110,0) When loop is info} Use {thumb ($ v [thumb], 90,0) When loop is data )}
Paging tag ------ {$ pages}
Article Tab
Title ------ {$ title}
Content ------ {$ content}
Date ------ {$ inputtime}
Source ------ {$ copyfrom}
Clicks ------ <span id = "hits"> </span>
<Script language = "JavaScript" src = "{APP_PATH} api. php? Op = count & id = {$ id} & modelid = {$ modelid} "> </script>
Website homepage ------ {siteurl ($ siteid )}
Current location ------ {catpos ($ catid )}
Topic name ------ {$ CAT [catname]}
Topic pinyin ------ {$ CAT [letter]}
Topic Link ------ {$ CAT [url]}
Parent topic name ------ {$ CATEGORYS [$ CAT [parentid] [catname]}
Parent Topic Link ------ {$ CATEGORYS [$ CAT [parentid] [url]}
Upper-level topic name ------ {$ CATEGORYS [$ CATEGORYS [$ CAT [parentid] [parentid] [catname]}
Link to the upper-level topic ------ {$ CATEGORYS [$ CATEGORYS [$ CAT [parentid] [parentid] [url]}
List of primary parent Columns
{Pc: content action = "category" catid = "0" num = "34" siteid = "$ siteid" order = "listorder ASC "}
{Loop $ data $ r}
<Li> <a href = "{$ r [url]}" >{$ r [catname]} </a> </li>
{/Loop}
{/Pc}
Peer column list
{Pc: content action = "category" catid = "$ parentid" num = "12" siteid = "$ siteid" order = "listorder ASC "}
{Loop $ data $ r}
<Li> <a href = "{$ r [url]}" >{$ r [catname]} </a> </li>
{/Loop}
{/Pc}
Group chart list
{Loop $ photos $ r}
<Li> <a href = "{$ r [url]}"> </a> </li>
{/Loop}
Note: $ photos is the custom image group field, {$ r [url]} is the image address, {thumb ($ r [url], 75, 45, 0 )} it is an image thumbnail, and {$ r [alt]} is an image description.