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?