在phpcms v9中,怎么下面的代码只能显示一级栏目不能显示二级栏目,求大神解惑
{pc:contentaction="public_categorys"catid="$catid"num="12"siteid="$siteid"order="list...
{pc:content action="public_categorys" catid="$catid" num="12" siteid="$siteid" order="listorder ASC"}
{loop $data $c}
<li style="background-color:#5d574c;"><a href="{$c['url']}">{$c['catname']}</a><dl>
{loop subcat($c['catid']) $c2}
<dd><a href="{$c2['url']}">{$c2['catname']}</a></dd>
{/loop}
</dl>
</li>
{/loop}
{/pc}
action=“public_categorys”改成action=“category也不能显示二级栏目 展开
{loop $data $c}
<li style="background-color:#5d574c;"><a href="{$c['url']}">{$c['catname']}</a><dl>
{loop subcat($c['catid']) $c2}
<dd><a href="{$c2['url']}">{$c2['catname']}</a></dd>
{/loop}
</dl>
</li>
{/loop}
{/pc}
action=“public_categorys”改成action=“category也不能显示二级栏目 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询