1. 程式人生 > >phpcms列表頁側邊調用當前欄目子欄目

phpcms列表頁側邊調用當前欄目子欄目

調用 tar url 技術 ref 技術分享 ren inf cat

phpcms列表頁列出當前欄目子欄目調用:

{pc:content action="category" catid="$top_parentid" num="10" siteid="$siteid" order="listorder asc"}

{loop $data $val}

<li><a target="_blank" href="{$val[url]}">{$val[catname]}</a></li>

{/loop}

{/pc}

效果:

技術分享圖片

phpcms列表頁側邊調用當前欄目子欄目