首页 > CMS建站 > PhpCMS > 正文

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

2020-10-10 20:52:02
字体:
来源:转载
供稿:网友

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配置文件添加如下代码:

  1. array (   
  2.      'templates|default|content' =>            //content-代表内容模块的模板风格   
  3.         array (   //Cuoxin.com 
  4.             'category.html' => '文章频道页',   
  5.         'category_new.html' => '文章频道页',   
  6.             'category_download.html' => '下载频道页',   
  7.         'category_download_new.html' => '下载频道页',   
  8.             'category_picture.html' => '图片频道页',   
  9.         'category_picture_new.html' => '图片频道页',   
  10.             'download.html' => '下载连接页',   
  11.             'footer.html' => '底部',   

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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表