When an attachment type field is added to the content model of the dream weaving DedeCMS system, the foreground needs to call {dede: field name='field name '/}.
After we upload an image or compressed package, the code on the foreground page is not the direct download address of the attachment:
For example, we need this format: '/uploads/soft/100602/1-100602212355. zip'
However, the foreground displays such codes:
<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>
The following is the modification method to remove redundant table code:
1. Open the file/samples/system/channel_addon.htm
2. Delete all the codes and just write~link~.
Statement: All articles on this site, unless otherwise specified or marked, are originally published on this site. No individual or organization is allowed to copy, embezzle, collect and publish the content of this website to any website, book and other media platforms without the consent of this website. If the content of this website infringes upon the legitimate rights and interests of the original author, please contact us for handling.