模板标签里面
程序版本:V4.5.2 Bulid 2021-09-03
请教如何调用 导航栏目,并且有 current功能(当前页面显示 class=“on”)?
顶级栏目,这样写是没啥问题的
{category module=share pid=0}
{$t.name}
{/category}
但是放到二级栏目后,current功能无法显现
{category module=share pid=$t.id return=t2}
{$t2.name} {/category}
另外想请教下 pid和 return 有什么作用,有啥区别么?
这个意思是调用所有的二级栏目嘛?如果我是想 调用 一级栏目ID=5 名下的 所有二级栏目应该如何操作呢?{category module=share pid=5 return=t2} 这样写貌似不行的
--------------
ID=5 名下的 所有下级级栏目
{category module=share pid=5 return=t2} 这样写是ok的
{/dede:type}