Phpcms is always used to query various tags, so it is really annoying to find a full range for future reference. It is not so easy to embed An ORM into the engine seamlessly when it is used together with the call.
{Template "content", "Header "}
Call the phpcms \ template \ content \ header file in the root directory
{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
{Css_path}
Replace the address with \ statics \ CSS under the root directory.
{Js_path}
Replace the address with \ statics \ JS under the root directory.
{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> < Href="{$ V [url]}">{$ V [title]}</A> </LI>{/Loop}
PC tag Value
Action = "position" -------------- dialog box type = "content recommendation bit list" posid = "9" ---------------------- recommendation bit id = "9" Order = "ID" --------------------- sorting type = "ID "num =" 10 "-------------------- number of data calls =" 10 "cache =" 3600 "------------------- cache =" 3600 "millisecond {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 num = "" CallArticleOrder = "id DESC" sort by ID in descending order = "id ASC" sort by ID in ascending order "views DESC" Sort = "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]}
Title Truncation------ {Str_cut ($ R [title], 40 ,'...')}
Thumbnail--------- When the loop is info, use {thumb ($ R [thumb], 110,0)} When the loop is data, use {thumb ($ V [thumb], 90,0 )}
Paging tag------ {$ Pages}
Article Tab
title ------- {$ title} content ------- {$ content} date ------- {$ inputtime} source ------- {$ copyfrom} clicks ------ id = " hits " >
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> < 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> < Href="{$ R [url]}">{$ R [catname]}</A> </LI>{/Loop} {/PC}
Group chart list
{Loop $ photos $ R}<Li> < Href = "{$ R [url]}" > SRC = "{Thumb ($ R [url], 75, 45, 0 )}" ALT = "{$ R [alt]}" /> </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.