联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
category标签的二级栏目出不来
类型:迅睿CMS 更新时间:2022-03-03 14:28:15 二级栏目

请教我这样写不对嘛,同页面中有一个了这样的代码了,另一个好用,这个不好二级栏目出不来

{category module=shop id=2 }
      <a href="{$t.url}" class="fl i">{$t.name}</a>
      {if $t.child}
       {category module=shop pid=$t.id return=t2 }
       <a href="{$t2.url}" class="fl i">{$t2.name}</a>
         {if $t2.child}
         {category module=shop pid=$t2.id return=t3}
          <a href="{$t3.url}" class="fl i">{$t3.name}</a>
         {/category}
         {/if}
       {/category}
      {/if}
      {/category}


回帖
  • IT-老男孩
    #1楼    IT-老男孩
    2022-03-03 14:26:45
    Firefox 97.0 0
    以解决

  • IT-老男孩
    #2楼    IT-老男孩
    2022-03-03 14:28:15
    Firefox 97.0 0
    使用官方的category栏目循环标签的生成工具,以解决问题{category module=shop pid=2 num=4 return=c1} <a href="{$c1.url}" class="fl i">{$c1.name}</a>
    {if $c1.child}
    {category module=shop pid=$t.id return=c12 }
    <a href="{$c12.url}" class="fl i">{$c12.name}</a>
    {/category}
    {/if}
    {/category}