Phpcms characters commonly used segment

Source: Internet
Author: User

$CATEGORY [$catid][ismenu] column shows navigation

$CATEGORY [$catid][catid] Column ID
$CATEGORY the module where [$catid][module] column is located
$CATEGORY [$catid][type] Column type
$CATEGORY [$catid][modelid] column belongs to the model ID
$CATEGORY [$catid][catname] Column name
$CATEGORY [$catid][style] Column name style
$CATEGORY [$catid][image] section
$CATEGORY [$catid][catdir] column path
$CATEGORY [$catid][url] Directory URL
$CATEGORY The parent ID of the [$catid][parentid] Column
$CATEGORY [$catid][arrparentid] Parent column ID
$CATEGORY [$catid][parentdir] The path to the parent column
$CATEGORY [$catid][child] have sub-columns
Sub-column ID $CATEGORY [$catid][arrchildid] Column
$CATEGORY [$catid][items] Number of columns
$CATEGORY [$catid][ismenu] column shows navigation
$CATEGORY [$catid][catid] Column ID
$CATEGORY the module where [$catid][module] column is located
$CATEGORY [$catid][type] Column type
$CATEGORY [$catid][modelid] column belongs to the model ID
$CATEGORY [$catid][catname] Column name
$CATEGORY [$catid][style] Column name style
$CATEGORY [$catid][image] section
$CATEGORY [$catid][catdir] column path
$CATEGORY [$catid][url] Directory URL
$CATEGORY The parent ID of the [$catid][parentid] Column
$CATEGORY [$catid][arrparentid] Parent column ID
$CATEGORY [$catid][parentdir] The path to the parent column
$CATEGORY [$catid][child] have sub-columns
Sub-column ID $CATEGORY [$catid][arrchildid] Column
$CATEGORY [$catid][items] Number of columns

Content page Current column category name:

{loop subcat ($CAT [ParentID]) $v}
<a href= "{$v [url]}" >{$v [catname]}</a>
{/loop}


List page Current column peer column name:

             {pc:content action= "category" Catid= "$parentid" siteid= "$siteid" order= "Listorder ASC "}
                {loop $data $r}
                     <a href= "{$r [url]}" >{$r [Catname]}</a>
                 {/loop}
             {/pc}             

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.