Phpcms the list page, how do I invoke all the sub-columns under it?

Source: Internet
Author: User

Article source : Wuhan Octave Cat Technology Co., Ltd. www.bayinmao.com.

Problem:

Phpcms v9 List page How to call sub-columns such as: Home > Products > Product type a> product Type A11

On the list page, in product Type A, include product type a1, product type a2, product type A3

How to call the category on the list page

Product Type a1, product type a2, product type A3 three kinds!


Reply:

{pc:content action= "category" Catid= "$catid" num= "order=" Listorder ASC "} {Loop $data $cat} {pc:content  action= "lists" catid= "$cat [' catid ']" order= "id DESC" num= "6" return= "Subcate"}{if $subcate}

Or


{pc:get sql= "select * from Phpcms_category where CATID in (your sub-column ID)" return= "Data"} {Loop $data $r}<a href= "{$r [' url ']}" >{$r [' CatName ']}</a>{/loop}  {/PC} If your sub-column ID is 8,9,10, the condition is written in (8,9,10)

Wuhan Octave Cat Technology Co., Ltd. is a high-end professional network marketing planning and consulting company, headquartered in Wuhan City, Hubei province Hongshan District Zhuo Dao Spring Road No. 299 Floral Holiday (PAULIWA) 7 Building 1 Unit 14 floor No. 01.

Phpcms the list page, how do I invoke all the sub-columns under it?

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.