联系官方销售客服
QQ1835022299
028-61286886
关于if怎么写 如果存在下级栏目就输出
{category module=share pid=0 num=12}
{category module=share pid=$t.id return=t2}
{/category}
{/category}
这个截图中圈红的地方想这样写,如果存在下级栏目就输出class="menu" 不存在就输出class="",应该怎么写,尝试很多次都不对
这个截图中想判断 不是首页且是当前栏目或者属于当前栏目 就是输出id="selected" 否则输出id=""
{category module=share pid=$t.id return=t2}- {$t2.name}
{/category}
{category module=share pid=$t.id return=t2}- {$t2.name}
{/category}
{/if}