加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > CMS系统 > Dedecms > 正文

Artlist标签去掉table

发布时间:2020-12-14 04:58:07 所属栏目:Dedecms 来源:网络整理
导读:在织梦../include/taglib 文件夹 找到arclist.lib.php 文件 然后搜索: if($col1){ $artlist = “ 修改为: if($col1){ $artlist = “ ”; } 查找: if($col1) $artlist .= “ 修改为: if($col1) $artlist .= “ ”; 查找: if($col1) $artlist .= ” 修改

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

然后搜索:

if($col>1){ $artlist = “

修改为:

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

查找:

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

修改为:

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

查找:

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

修改为:

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

查找:

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

修改为:

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

查找:

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

修改为:

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

查找:

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

修改为:

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

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

在{dede:channelArtlist}与{/dede:channelArtlist}就能直接调用最终要显示的内容,不会含有多余的html代码了。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!