首页 > 其他 > 详细

Artlist标签去掉table

时间:2017-02-20 18:27:57      阅读:90      评论:0      收藏:0      [点我收藏+]

在织梦../include/taglib 文件夹 找到arclist.lib.php 文件

 

然后搜索:

 

if($col>1){ $artlist = “<table width=’$tablewidth’ border=’0′ cellspacing=’0′ cellpadding=’0′> ”; }

修改为:

if($col>1){ $artlist = “ ”; }

查找:

if($col>1) $artlist .= “<tr> ”;

 

修改为:

 

if($col>1) $artlist .= “ ”;

查找:

if($col>1) $artlist .= ” <td width=’$colWidth’ valign=’top’> ”;

 

修改为:

 

if($col>1) $artlist .= ” ”;

查找:

if($col>1) $artlist .= ” </td> ”;

 

修改为:

 

if($col>1) $artlist .= ” ”

查找:

if($col>1){ $artlist .= ” </tr> ”;}

 

修改为:

 

if($col>1){ $artlist .= ” ”;}

查找:

if($col>1) $artlist .= ” </table> ”;

 

修改为:

 

:if($col>1) $artlist .= ” ”;

 

这样去掉所有table(表格)标签,然后在模板里使用channelArtlist标签,最终显示的内容将不再包含这些table元素了。

 

在{dede:channelArtlist}与{/dede:channelArtlist}就能直接调用最终要显示的内容,不会含有多余的html代码了。原文地址:http://www.zzarea.com/cms/dedecms/292.html

Artlist标签去掉table

原文:http://www.cnblogs.com/wishjm/p/6420663.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!