Use phpcms V9 labels

Source: Internet
Author: User
Phpcms V9 common template label call method PC label description {template "content", "Header"} ---------- call the phpcms \ template \ content \ header file under 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']} the above four do not need to be explained, all are 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" POS 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> <a href = "{$ V [url]}" >{$ V [title]} </a> </LI>

{/Loop}

Show PC tag values

Action = "position" ------------- dialog box type = "content recommendation bit list"

Pos -------------------- recommended bit id = "9"

Order = "ID" -------------------- sorting type = "ID"

Num = "10" ------------------- number of data calls = "10"

Cache = "3600" ---------------- cache = "3600" milliseconds

{App_path} ----------------- Project address

{Get_siteid ()}----------------

{Img_path }-----------------

Action = "hits" ranking, hotspot, etc.

Action = "Lists" is mainly used for list and so on.

Cat specifies the number of the current column ID, that is, the specified Column

Num = "" number of articles called

Order = "id DESC" sort by ID in descending order

Order = "id ASC" in ascending order of ID

Order = "views DESC"

Sort = ""

Thumb = "1" thumbnail

Return = ""

Page = "$ page" requires Paging

The {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]}

Header truncation {str_cut ($ R [title], 40 ,'...')}

When the thumbnail loop is info, use {thumb ($ R [thumb], 110,0)} When the loop is data, use {thumb ($ V [thumb], 90,0 )}

Pagination tag {$ pages}

{$ V [url]}

{Str_cut ($ V ['title'], 26 ,'')}

{Str_cut ($ V ['description'], 40 ,'')}

{Thumb ($ V [thumb], 120,150 )}

Article Tab

Title {$ title}

Content {$ content}

Date {$ inputtime}

Source {$ copyfrom}

Clicks <span> </span> <script language = "JavaScript" src = "{app_path} API. php? OP = count & ID ;={$ ID} & modelid ;={$ modelid} "> </SCRIPT>

Website homepage {siteurl ($ siteid )}

Current position {catpos ($ catid )}

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.