標籤:des style color io strong sp 問題 cti on
文章來源:武漢八音貓科技有限公司www.bayinmao.com。
問題:
phpcms v9列表頁如何調用子欄目如:首頁>產品中心>產品類型a>產品類型a11
在列表頁產品類型a中,包括產品類型a1、產品類型a2、產品類型a3
如何在列表頁的category調用出來
產品類型a1、產品類型a2、產品類型a3 三種類型!
回答:
{pc:content action="category" catid="$catid" num="99" order="listorder ASC"}{loop $data $cat}{pc:content action="lists" catid="$cat[‘catid‘]" order="id DESC" num="6" return="subcate"}{if $subcate}<h2><a href="{$cat[‘url‘]}">{$cat[‘catname‘]}</a></h2><ul class="news_list"> {loop $subcate $r} <li><span>{date(‘Y/m/d H:i‘,$r[‘inputtime‘])}</span><a{if $n==1} class="b"{/if} href="{$r[‘url‘]}">{$r[‘title‘]}</a></li> {/loop}</ul>{/if}{/pc}{/loop}{/pc}或者
{pc:get sql="select * from phpcms_category where catid in(你的子欄目ID)" return="data"}{loop $data $r}<a href="{$r[‘url‘]}">{$r[‘catname‘]}</a>{/loop} {/pc}如果你的子欄目ID是8,9,10的話,條件哪裡就寫成in(8,9,10)
武漢八音貓科技有限公司是一家高端專業的網路營銷策劃建設和諮詢的公司,總部位於湖北省武漢市洪山區卓刀泉南路299號花香假日(保利華都)7棟1單元14層01號。
phpcms 列表頁中,如何調用其下的所有子欄目?