帝國CMS單條信息使用不同內(nèi)容模板的方法
在根目錄下 /e/action/ShowInfo.php 中查找
1、查找 //取得內(nèi)容模板
2、將
$r[newstempid]=$r[newstempid]?$r[newstempid]:$class_r[$r[classid]][newstempid];
替換成
$nrid=(int)$_GET[nrid]; if($nrid) { $r[newstempid]=$nrid; } else { $r[newstempid]=$r[newstempid]?$r[newstempid]:$class_r[$r[classid]][newstempid]; }
使用的時(shí)候在信息地址后面加&nrid=模板id就可以了
責(zé)任編輯:MOKUGE