Forums / Setup & design / Create / Remove / Edit a object from the Pagelayout

Create / Remove / Edit a object from the Pagelayout

Author Message

Leandro Alves

Thursday 08 July 2004 4:32:29 am

Hi!

I'd like to allow my users to create, to remove and to edit ez's objects (article, file...) from the main site, not from admin page...

In eZ 3.3-5 demo there is how to create, but not how to edit the object created and how to remove it.

<b>Example of button for "New File" from eZ 3.3-5 demo</b>

{default content_object=$node.object
         content_version=$node.contentobject_version_object
         node_name=$node.name}
{section show=$content_object.can_create}

{section show=$node.path_array[2]|eq(62)}
<form method="post" action={"content/action"|ezurl}>
  <input type="hidden" name="NodeID" value="{$node.node_id}" />
  <input type="hidden" name="ClassID" value="12" />
  <input class="button" type="submit" name="NewButton" value="New file" />
</form>
{/section}

{/section}
{/default}

Its work fine!

But now, <b>How Can I remove or edit this file created?</b>

Thanks!
Leandro