打开:include\taglib\channel.lib.php文件。找到
1
|
if($type==’son’ && $reid!=0 && $totalRow==0)
|
改成
1
|
if($type==’son’ && $reid!=0 && $totalRow==0 && $noself==’’)
|
调用方法:
1
2
3
4
5
6
|
{dede:channelartlist typeid=’10’}
<li class="li_biaoti"><a class="s" href="{dede:field name=’typeurl’/}" >{dede:field name=’typename’/}</a></li>
{dede:channel type=’son’ noself=’yes’}
<li><a class="t" href="[field:typelink/]">[field:typename/]</a></li>
{/dede:channel}
{/dede:channelartlist}
|