POST TIME:2020-04-01 19:20
當(dāng)我們?cè)谙到y(tǒng)內(nèi)容模型中添加附件類型字段時(shí),前臺(tái)需要用{dede:field name='字段名'/}來(lái)調(diào)用。
例如我在后臺(tái)發(fā)布一篇文章,上傳一個(gè)zip的附件,字段的時(shí)間內(nèi)容是:'/uploads/soft/100602/1-100602212355.zip',而前臺(tái)則顯示下面的內(nèi)容。
<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> |
而我只想調(diào)用'/uploads/soft/100602/1-100602212355.zip',怎么辦?
下面就是去除多余table代碼的修改方法:
1、打開(kāi)文件 /templets/system/channel_addon.htm
2、把里面的代碼全都刪掉,只寫(xiě)~link~即可。
相關(guān)閱讀:
織夢(mèng)增加字段失敗,有錯(cuò)誤提示的解決方法
織夢(mèng)DedeCMS任意位置調(diào)用自定義字段的方法
如何刪除織夢(mèng)Dedecms已添加的自定義字段