我們在使用dede網(wǎng)站建設時,自定義附件,讀取是會出
<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>
我們在系統(tǒng)內(nèi)容模型中添加附件類型字段時,前臺需要用{dede:field name='字段名'/}來調(diào)用。
例如我在后臺發(fā)布一篇文章,上傳一個zip的附件,字段的時間內(nèi)容是:'/uploads/soft/100602/1-10060221235523434.zip',而前臺則顯示下面的內(nèi)容。
<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>
而我只想調(diào)用'/uploads/100602/1-10060221235523434.zip',怎么辦?
下面就是去除多余table代碼的修改方法:
1、打開文件 /templets/system/channel_addon.htm
2、把里面的代碼全都刪掉,只寫~link~即可。