phpcms 三级栏目调用

<ul>
  {pc:content action="category" catid="0" num="12" siteid="$siteid" order="listorder ASC"}
  {loop $data $c}
  <li><a href="{$c['url']}">{$c['catname']}</a>
    <ul>
      {loop subcat($c['catid']) $c2}
        <li><a href="{$c2['url']}">{$c2['catname']}</a>
            <ul>
               {loop subcat($c2['catid']) $c3}
                 <li><a href="{$c2['url']}">{$c3['catname']}</a></li>
                 {/loop}
            </ul>
        </li>
        {/loop}
    </ul>
   </li>
{/loop}
{/pc}
</ul>

 

posted @ 2019-08-27 14:21  六人行  阅读(347)  评论(0编辑  收藏  举报