Phpcms Common Tags

Source: Internet
Author: User

To get a list under a column:

<ul>
{pc:content action= "lists" catid= "All" num= "order=" "id DESC" return= "info"}
{Loop $info $v}
<li><a href= "{$v [' url ']}" title= "{$v [' title '}" target= "_blank" >{$v [' title ']}</a><span>{ Date (' m-d ', $v [' Inputtime '])}</span></li>
{/loop}
{/PC}
</ul>

Catid= "15" is the column name, the above writing is to get a list of columns!

{$v [' URL ']} is a link to the article

{$v [' title '} is the title to get the article

{Date (' m-d ', $v [' Inputtime ')} is the date on which the article was obtained

Get all sub-columns under the specified column:

<div class= "Case_title" >&nbsp;&nbsp;<a href= "{$CATEGORYS [27][' URL ']}" >{$CATEGORYS [27][' CatName ']}</a></div>
<div class= "Arrchildid_list" >
{php $j = 1;}
<ul>
{Loop subcat $v}
{PHP if ($v [' type ']!=0) continue;}
<li> <a href= "{$v [url]}" >{$v [catname]}</a></li>
{/loop}
</ul>
</div>
</ul>

27 is the ID of the parent column

{$CATEGORYS [27][' URL ']} is the ID link of the parent column

This method try the left navigation bar for the page

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.