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~.

Post reply

Can't comment until