Phpcms v9 Label meaning finishing

Source: Internet
Author: User

{Template "content", "header"}----------call the root directory under the Phpcms\template\content\header file
{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}-----------------------------------address replaced by the root directory \statics\css
{Js_path}--------------------------------------address replaced by the root directory \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}
<li><a href= "{$v [url]}" >{$v [title]}</a></li>
{/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= "-------------------number of data calls =" 10 "
cache= "3600"----------------cache = "3600" milliseconds
{App_path}-----------------project Address
{Get_siteid ()}----------------
{Img_path}-----------------
Action= "hits" ranking, hot spots, etc.
action= "Lists" is mainly used for lists and so on.
Catid= "$catid" The current column ID specifies a number, that is, the specified column
Num= "" Number of calls to the article
order= "id DESC" in descending order by ID
order= "id ASC" in ascending order by ID
order= "Views DESC"
Sort= ""
thumb= "1" thumbnail
Return= ""
Page= "$page" needs paging
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
Title------{$title}
Content------{$content}
Date------{$inputtime}
SOURCE------{$copyfrom}
Hits------<span id= "hits" ></span>

<script language= "JavaScript" src= "{app_path}api.php?op=count&id={$id}&modelid={$modelid}" ></ Script>
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]}

First-level parent column list

{pc:content action= "category" catid= "0" num= "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= "siteid=" $siteid "order=" Listorder ASC "}
{Loop $data $r}
<li><a href= "{$r [url]}" >{$r [catname]}</a></li>
{/loop}
{/PC}

List of photos

{Loop $photos $r}

<li><a href= "{$r [url]}" ></a></li >

{/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

Phpcms v9 Label meaning finishing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.