|
效果演示:
实现教程
1、打开 include/taglib/channelartlist.lib.php 找到
$tpsql = " reid='$typeid' AND ispart2 AND ishidden1 ";
改成
if($type=='son')
{
$typeid = ( !empty($refObj->TypeLink->TypeInfos['id',) ? GetTopid($refObj->TypeLink->TypeInfos['id',) : 0 );
$tpsql = " reid='$typeid' AND ishidden1 ";
}
else
{
$tpsql = " reid='$typeid' AND ispart2 AND ishidden1 ";
}
2、打开 include/taglib/channel.lib.php 找到
if($type=='son' && $reid!=0 && $totalRow==0)
改成
if($type=='son' && $reid!=0 && $totalRow==0 && $noself=='')
3、后台-系统-其它选项 去掉php
列表页和内容页标签写法
{dede:php}
$GLOBALS['thisid', = intval($refObj->Fields['typeid',);
$GLOBALS['reid', = intval($refObj->Fields['reid',);
$GLOBALS['topid', = intval($refObj->Fields['topid',);
{/dede:php}
{dede:channelartlist type=son}
[url={dede:field.typeurl/},{dede:field.typename/}[/url]
{dede:channel type=son noself=yes}
[url=[field:typelink /,,[field:typename/,[/url]
{/dede:channel}
{/dede:channelartlist}
|
|