phpcms网站二级导航&三级导航调用代码
{pc:content action="category" catid="0" num="12" siteid="$siteid" order="listorder ASC"} <a href="{siteurl($siteid)}/">首页</a></li> {loop $data $c} <a href="{$c['url']}">{$c['catname']}【一级导航】</a><br> {loop subcat($c['catid']) $c2} <a href="{$c2['url']}">{$c2['catname']}【二级导航】</a><br> {loop subcat($c['catid']) $c3} <a href="{$c2['url']}">{$c3['catname']}【三级导航】</a><br> {/loop} {/loop} {/loop} {/pc}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/262986.html