上述代码红色部分就是判断是否隐藏二级栏目的代码

易优教程 强烈建议 2024-03-15 07:34 113 0

  {eyou:channel type="top" row="10" id="field" currentstyle="active"}

  

  • {$field.typename}

      {eyou:notempty name="$field.children"}

      

      {eyou:channel name="$field.children" row="100" id="field2"}

      {$field2.typename}

      {/eyou:channel}

      

      {/eyou:notempty}

      

  •   {/eyou:channel}

      上述代码红色部分就是判断是否隐藏二级栏目的代码,其判断为有子栏目时就显示,没有有子栏目时就隐藏。

    本站资源均来自互联网或会员发布,如果不小心侵犯了您的权益请与我们联系。我们将立即删除!谢谢!