码迷,mamicode.com
首页 > 其他好文 > 详细

DEDE在下载文件时会生成table

时间:2015-03-27 22:04:35      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

当我们在系统内容模型中添加附件类型字段时,前台需要用{dede:field name=‘字段名‘/}来调用。

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

<table width=300>
<tr>
<td height=30 width=20><a href=/uploads/soft/100602/1-100602212355.doc target=_blank></a></td>
<td><a href=/uploads/soft/100602/1-100602212355.doc target=_blank><u>/uploads/soft/100602/1-100602212355.zip</u></a></td>
</tr>
</table>

 

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

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

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

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

DEDE在下载文件时会生成table

标签:

原文地址:http://www.cnblogs.com/xinlinux/p/4372792.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!