帝國CMS單條信息使用不同內容模板的方法,在文件 /e/action/ShowInfo.php 中
1、查找 //取得內容模板
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];}
使用的時候在信息地址后面加&nrid=模板id就行了
新聞熱點
疑難解答