Phpcmsv9 template label description series

Source: Internet
Author: User
{Template & quot; content & quot;, & quot; header & quot;} calls the phpcms \ template \ content \ header file {CHARSET} character set (gbk or UTF-8) in the root directory) {ifisset ($ SEO [& amp; #39; title & amp; #39;]) & amp;

{Template "content", "header"} calls 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']} title and title seo optimization

Replace {CSS_PATH} with \ statics \ css under the root directory.

Replace {JS_PATH} with \ statics \ js under the root directory.

{Pc: content action = "position" posid = "9" order = "id" num = "10" cache = "3600"} pc tag {pc: content parameter name = "parameter value "}

{Loop $ data $ k $ v}

  • {$ V [title]}

  • {/Loop} pc tag value

    Action = "position" -------------- dialog box type = "content recommendation bit list"
    Posid = "9" ---------------------- recommended bit ID = "9"
    Order = "id" --------------------- sorting type = "id"
    Num = "10" ---------------------- number of data calls = "10"
    Cache = "3600" ----------------- cache = "3600" millisecond

    {Get_siteid ()}
    {IMG_PATH}
    Action = "hits" ranking, hotspot, etc.
    Action = "lists" is mainly used for list and so on.
    Catid = "$ catid" specifies a number for the current topic ID, that is, the specified topic ID
    Num = "" number of articles called
    Order = "id DESC" sort by ID in descending order
    Order = "id ASC" in ascending order of ID
    "Views DESC"
    Sort = ""
    "1" Thumbnail
    Return = ""
    Page = "$ page" is displayed every time several rows in the list are displayed by page.

    {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]}
    Subtitle capture ------ {str_cut ($ r [title], 40 ,'...')}
    Thumbnail --------- use {thumb ($ r [thumb], 110,0) when loop is data {thumb ($ v [thumb], 90,0 )}
    Paging tag ------ {$ pages}

    Article tab

    Title ------- {$ title}
    Content ------- {$ content}
    DATE ------- {$ inputtime}
    SOURCE ------- {$ copyfrom}
    Clicks ------

    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.