noself='yes'织梦dedecms无子栏目时不调用不显示栏目的解决方法
使用织梦cms做网站的时候出现的一个问题。使用channel标签调用子栏目时,若该顶级栏目无子栏目,则直接调用了顶级栏目。
而自丢网想要的效果是有子栏目时就调用子栏目,如果没有子栏目,就不做调用。 想要实现这个方案,需要用到 noself='yes' 3.在channel标签中使用 noself='yes'
{dede:channel type='son' noself='yes'}
<a href="[field:typelink/]" title="">[field:typename/]</a>
{/dede:channel}
4.重新更新html。 |