400-809-6709
RH98 · 最新动态

北京网站建设-dede自定义字段table去掉,自定义附件里面有<table>

来源:瑞恒网络 浏览:
北京网站建设-dede自定义字段table去掉,自定义附件里面有<table>
 
我们在使用dede网站建设时,自定义附件,读取是会出
<table width='300'>
<tr>
<td height='30' width='20'><a href='/uploads/soft/100602/1-10060221235523434.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-10060221235523434.zip</u></a></td>
<tr></table>
 
我们在系统内容模型中添加附件类型字段时,前台需要用{dede:field name='字段名'/}来调用。
例如我在后台发布一篇文章,上传一个zip的附件,字段的时间内容是:'/uploads/soft/100602/1-10060221235523434.zip',而前台则显示下面的内容。
 
<table width='300'>
<tr>
<td height='30' width='20'><a href='/uploads/soft/100602/1-10060221235523434.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-10060221235523434.zip</u></a></td>
<tr>
</table>
而我只想调用'/uploads/100602/1-10060221235523434.zip',怎么办?
 
下面就是去除多余table代码的修改方法:
 
1、打开文件 /templets/system/channel_addon.htm
 
2、把里面的代码全都删掉,只写~link~即可。
← 北京网站建设-百度搜索后面的官网字样,怎么做?搜索后标题后面的官网二字怎么加?
返回动态列表

准备好重塑网站让生意找上门了吗?

免费提供出海网站可行性评估与 AI 排名和 SEO 诊断报告