Forums / Setup & design / How to allow the users to remove files?

How to allow the users to remove files?

Author Message

Jorge Dionisio

Wednesday 12 May 2004 3:35:46 am

Is this the right way? what am i doing wrong?

{attribute_view_gui attribute=$node.object.data_map.description}

{attribute_view_gui attribute=$node.object.data_map.file}

<form method="post" action={concat("/content/remove/",$node.object.id,"/")|ezurl}>

<input type="submit" name="RemoveFile" value="Remove File">

</form>

Jorge Dionisio

Wednesday 12 May 2004 5:14:37 am

forget about it, i did it anyway here is the solution for to put in the file_line.tpl, to allow users to remove files...

<form enctype="multipart/form-data" method="post" action={concat("/content/action")|ezurl}>

<input type="hidden" name="DeleteIDArray[]" value="{$node.node_id}">
<input type="submit" name="RemoveButton" value="{'Remove File'i18n('design/standard/content/edit')}">

</form>