Warning: Undefined array key "night" in /www/wwwroot/dhaomu.com/wp-content/themes/b2/header.php on line 18

织梦调用自定义字段“附件”下载去除Table样式的修改方法

织梦教程:dedecms教程调用自定义字段“附件”下载去除Table样式的修改方法!当我们在系统内容模型中添加附件类型字段时,前台需要用{dede:field name='字段名'/}来调用。

织梦教程:dedecms教程调用自定义字段“附件”下载去除Table样式的修改方法!当我们在系统内容模型中添加附件类型字段时,前台需要用{dede:field name='字段名'/}来调用。

例如我在后台发布一篇文章,上传一个zip的附件,字段的时间内容是:'/uploads/soft/100602/1-100602212355.zip',而前台则显示下面的内容。

<table width='300'>
     <tr>
         <td height='30' width='20'><a href='/uploads/soft/100602/1-100602212355.zip' target='_blank'><img src='~cfg_phpurl~/img/addon.gif' border='0' align='center'></a></td>
         <td><a href='/uploads/soft/100602/1-100602212355.zip' target='_blank'><u>/uploads/soft/100602/1-100602212355.zip</u></a></td>
     </tr>
</table>

而我只想调用'/uploads/soft/100602/1-100602212355.zip',怎么办?

下面就是去除多余table代码的修改方法:

1、打开文件 /templets/system/channel_addon.htm

2、把里面的代码全都删掉,只写~link~即可。

温馨提示:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

给TA赞赏
共{{data.count}}人
人已赞赏
编程技巧

WordPress最新文章列表中排除置顶文章

2023-3-20 0:00:00

编程技巧

高效的扩展WordPress主题核心文件functions.php

2023-3-22 0:00:00

0 条回复 A文章作者 M管理员

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914
----《》
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索