phpcms如何调二级导航?
phpcms v9导航栏调用二级栏目实例教程
<div> <ul> <li><a href="{siteurl($siteid)}">首页</a></li> {pc:content action="category" catid="0" num="10" siteid="$siteid" order="listorder ASC"} {loop $data $r} <li><a href="{$r[url]}">{$r[catname]}</a> {if $r[arrchildid]} <ul> {pc:content action="category" catid="$r[catid]" num="10" siteid="$siteid" order="listorder ASC" return="data2"} {loop $data2 $v} <li><a href="{$v[url]}">{$v[catname]}</a></li> {/loop} {/pc} </ul> {/if} </li> {/loop} {/pc} </ul> </div>
PHP中文网,大量的免费PHPCMS教程,欢迎在线学习!