Tutorial on how to use Imperial CMS to specify different content templates for a single piece of information

888u

Last update at :2024-03-13,Edit by888u

The information of Empire CMS is bound to the content template. This tutorial can be used to freely use different templates at the front desk. For example, on the homepage of the website, add the same information link in two places, but different templates.

Open /e/action/ShowInfo.php

Find:

$r[newstempid]=$r[newstempid]?$r[newstempid]:$class_r[$r[classid]][newstempid];

Replace with:

$nrid=$_GET[nrid]; if($nrid) { $r[newstempid]=$nrid; } else { $r[newstempid]=$r[newstempid]?$r[newstempid]:$class_r[$r[classid]][newstempid]; }

When using it, just add &nrid=template id after the information address

Recommended site search: US server website, US vps server, website icp registration, rent a server, host server rental, registration number, mainland China ip agent, this website server is in the United States, South Korea cn2 server, what is needed for website registration,

Tutorial on how to use Imperial CMS to specify different content templates for a single piece of information

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码