您的位置:首页 > 运维架构 > 网站架构

【phpcms-v9】怎样给网站前台的个别页面更换新的模板?

2012-08-27 17:19 465 查看
1.第一步:将美工新设计的模板放置到phpcms/templates/default/模块目录名/模板文件名.html
如: phpcms/templates/default/content/category_new.html
如: phpcms/templates/default/content/category_download_new.html
如: phpcms/templates/default/content/category_picture_new.html

2.第二步:找到phpcms/templates/default/config.php配置文件添加如下代码(红色标注):
array (
'templates|default|content' =>            //content-代表内容模块的模板风格
array (
'category.html' => '文章频道页',
'category_new.html' => '文章频道页',
'category_download.html' => '下载频道页',
'category_download_new.html' => '下载频道页',
'category_picture.html' => '图片频道页',
'category_picture_new.html' => '图片频道页',
'download.html' => '下载连接页',
'footer.html' => '底部',


3.第三步:到后台去选择新的栏目页、列表页、内容详情页模板


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  download templates