Phpcms v9 Template Label Description finishing series
Call the root directory under the Phpcms\template\content\header file
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
Replace the address with the root directory under \STATICS\CSS
{Js_path}
Replace the address with the root directory under \statics\js
{pc:content action= "position" posid= "9" order= "id" num= "ten" cache= "3600"}
PC Label {pc:content parameter name = parameter value argument name = parameter value parameter name = parameter value}
{Loop $data $k $v}
href = "{$v [url]}" > {$v [title]}{/loop}
PC Tag Value
action= type of "position"--------------dialog box = "Content Recommendation List" posid= "9"----------------------recommended bit id= "9" order= "id"------------- --------Sort type = "id" num= "ten"----------------------number of data calls = "cache=" 3600 "-------------------cache =" 3600 "milliseconds {get_ SiteID ()}{img_path}action= "hits" ranking, hotspots and other action= "lists" mainly used for lists and so on. Catid= "$catid" The current column ID specifies a number, that is, the number of num= "" Calls to the specified column order= "id DESC" in descending order by ID order= "ID ASC" in ascending order by id "views DESC "sort=" "" 1 "thumbnail return=" "page=" $page "paging required
Every time the list is a few lines, this one appears.
{if $num%2==0} {/if}
Loop label
{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 intercept ------{str_cut ($r [title],40, ' ... ')}
thumbnail ---------loop is info using {thumb ($v [thumb],90,0)} When {thumb ($r [thumb],110,0)} loop is data)
Paging tab ------{$pages}
Article page labels
The title-------{$title} content-------{$content} date-------{$inputtime} source-------{$copyfrom} hits------
<> < span="">
ID
=
"hits"
>
<>
website Home ----------------{siteurl ($siteid)}
Current Position ----------------{catpos ($catid)}
Column name ----------------{$CAT [catname]}
column Pinyin ----------------{$CAT [letter]}
column link ----------------{$CAT [url]}
Parent Column name --------------{$CATEGORYS [$CAT [Parentid]][catname]}
Parent Column Link --------------{$CATEGORYS [$CAT [Parentid]][url]}
Upper Column name --------{$CATEGORYS [$CATEGORYS [$CAT [Parentid]][parentid]][catname]}
Upper Column link --------{$CATEGORYS [$CATEGORYS [$CAT [Parentid]][parentid]][url]}
List of parent-level columns
{pc:content action= "category" catid= "0" num= "siteid=" $siteid "order=" Listorder ASC "} {Loop $data $r}
href = "{$r [url]}" > {$r [catname]} {/loop} {/PC}
Peer Column list
{pc:content action= "category" Catid= "$parentid" num= "siteid=" $siteid "order=" Listorder ASC "} {Loop $data $r}
href = "{$r [url]}" > {$r [catname]} {/loop} {/PC}
List of photos
href = "{$r [url]}" src="{thumb ($r [url], 0)}"alt="{$r [Alt]}" /> {/loop}
Note: Where $photos is a custom group field, {$r [url]} is a picture address, {thumb ($r [url], 75, 45, 0)} is a picture thumbnail, {$r [Alt]} is a picture description