五指cms内容列表标签添加调用父级内容
1.修改coreframe\app\content\libs\class\content_template_parse.class.php
搜索$where = 'a.`cid` IN ('.$cids.') AND a.`status`=9';
替换为
$where = 'a.`cid` IN ('.$cids.') AND a.`status`=9';
//是否包含父级内容
if(isset($c['includeme'])){
$where = 'a.`cid` IN ('.$cid.','.$cids.') AND a.`status`=9';
}
搜索$where = '`cid` IN ('.$cids.') AND `status`=9';
替换为
$where = '`cid` IN ('.$cids.') AND `status`=9';
//是否包含父级内容
if(isset($c['includeme'])){
$where = '`cid` IN ('.$cid.','.$cids.') AND `status`=9';
}
2.前台调用
{wz:content action="listing" page="$page" pagesize="7" order="sort DESC,addtime DESC" cid="1" urlrule="$urlrule" includeme="1"}
{/wz}