1.在phpcms\modules\wap\index.php中搜索
$template = ($TYPE[$typeid]['parentid']==0 && in_array($typeid,array_unique($parentids))) ? $WAP_SETTING['category_template'] : $WAP_SETTING['list_template'];

修改为
$template = ($TYPE[$typeid]['parentid']==0 && in_array($typeid,array_unique($parentids))) ? $WAP_SETTING['category_template'] : $WAP_SETTING['list_template'].$typeid;
2.这样子的话,假定列表文件默认为list.html, 那typeid 为1的列表文件就是list1.html,typeid 为2的列表文件就是list2.html,这样子就可以不同列表采用不同模板显示。

 

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2021-12-22
  • 2022-02-01
  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
  • 2021-11-03
猜你喜欢
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
相关资源
相似解决方案