Phpcms Template Label Finishing

Source: Internet
Author: User

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}      <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= "Ten"----------------------number of data calls = "Ten"cache= "3600"---- ---------------cache = "3600" milliseconds {Get_siteid ()}{img_path}action= "hits" rank, hotspot, etc. action= "lists"  Mainly used for lists and so on. CatID= "$catid" The current column ID   specifies a number, that is, the number of the specified column num= "" is called the quantity of the   article order= "id DESC" in descending order by ID = "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 "></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]}

List of parent-level columns

{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

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.