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列表页列出当前栏目子栏目调用:
{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}
效果:
转载于:https://www.cnblogs.com/chervehong/p/10286300.html