欢迎来到站长天空!

DedeCMS

当前位置: 主页 > CMS教程 > DedeCMS

修改dedecms之channelArtlist标签,去掉table

时间:2025-12-07 09:13:25|栏目:DedeCMS|点击:

  用记事本打开include/inc_arcpart_view.php ,找到:
  
  if($col>1){ $artlist = “<table width=’$tablewidth’ border=’0′ cellspacing=’0′ cellpadding=’0′>\r\n”; }
  
  修改为:
  
  if($col>1){ $artlist = “\r\n”; }
  
  查找:
  
  if($col>1) $artlist .= “<tr>\r\n”;
  
  修改为:
  
  if($col>1) $artlist .= “\r\n”;
  
  查找:
  
  if($col>1) $artlist .= ” <td width=’$colWidth’ valign=’top’>\r\n”;
  
  修改为:
  
  if($col>1) $artlist .= ” \r\n”;
  
  查找:
  
  if($col>1) $artlist .= ” </td>\r\n”;
  
  修改为:
  
  if($col>1) $artlist .= ” \r\n”;
  
  查找:
  
  if($col>1){ $artlist .= ” </tr>\r\n”;}
  
  修改为:
  
  if($col>1){ $artlist .= ” \r\n”;}
  
  查找:
  
  if($col>1) $artlist .= ” </table>\r\n”;
  
  修改为:
  
  if($col>1) $artlist .= ” \r\n”;
  
  这样去掉所有table(表格)标签,然后在模板里使用channelArtlist标签,最终显示的内容将不再包含这些table元素了。
  
  在{dede:channelArtlist}与{/dede:channelArtlist}就能直接调用最终要显示的内容,不会含有多余的html代码了。

上一篇:教你用dedecms快速制作电影站点

栏    目:DedeCMS

下一篇:复制文章出现文章转载来自己xxx的代码

本文标题:修改dedecms之channelArtlist标签,去掉table

本文地址:https://zz.feitang.co/CMSjiaocheng/29085.html

广告投放 | 联系我们 | 版权申明

申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:257218569 | 邮箱:257218569@qq.com

Copyright © 2018-2025 站长天空 版权所有 Powered by EyouCms冀ICP备14023439号