Phpcms V9 commonly used call tags

Source: Internet
Author: User

This article describes the instructions for using template labels in phpcms v9.

" Call the root directory under the Phpcms\template\content\header file

{Template "content", "header"}

"Character set (GBK or Utf-8)

{CHARSET}

"Title and Title SEO optimization

{if isset ($SEO [' title ']) &&!empty ($SEO [' title '])} {$SEO [' title ']} {/if} {$SEO [' Site_title ']} {$SEO [' keyword ']} {$SEO [' description ']}

"Address is replaced by the root directory \statics\css

{Css_path}

"Address is replaced by the root directory \statics\js

{Js_path}

PC Label {pc:content parameter name = argument value argument name = parameter value parameter name = parameter value}

{pc:content action= "position" posid= "9" order= "id" num= "ten" cache= "3600"}

"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, for the specified column num= "" The number of calls to the article order= "id DESC" in descending order by ID order= "ID ASC" in ascending order by id "views DESC" sort= "" "1" indent Sketch return= "" page= "$page" requires paging

Every time a few lines of the list appear this

{if $num%2==0} {/if}

"Cycle 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 with {thumb ($v [thumb],90,0)} when the {thumb ($r [thumb],110,0)} loop is data}
"page tab ------{$pages}
" article page tab
The title-------{$title} content-------{$content} date-------{$inputtime} source-------{$copyfrom} hits------id="Hits "></span>
Language=src="{app_path}api.php?op=count&id={$id}&modelid={$modelid}"></ script>    
website Home----------------{SiteURL ($siteid)}
Current Position----------------{Catpos ($catid)}
Column Name----------------{$CAT [catname]}
section Pinyin----------------{$CAT [letter]}
Column Links----------------{$CAT [url]}
Parent Column Name--------------{$CATEGORYS [$CAT [Parentid]][catname]}
Parent Column Link--------------{$CATEGORYS [$CAT [Parentid]][url]}
name of Upper Superior column--------{$CATEGORYS [$CATEGORYS [$CAT [Parentid]][parentid]][catname]}
links to higher-level columns--------{$CATEGORYS [$CATEGORYS [$CAT [Parentid]][parentid]][url]}

"The first level of the parent column list
{pc:content action= "category" catid= "0" num= "siteid=" $siteid "order=" Listorder ASC "}      {Loop $data $r}             href="{$r [url]}">{$r [catname]}</a></li> {/loop}{/pc}  
List of peer columns
{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
href="{$r [url]}"src=alt=/></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 commonly used call tags

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.