Monday 12 July 2004 12:39:17 pm
Leandro, You can duplicate the code used in the admin interface easily in your "user" site. Put template debug on and you will see which templates to examine. To edit a given node use something like
{section show=$node.object.can_edit}
<a href={concat("content/edit/",$node.object.id)|ezurl}><img src={"small/edit.gif"|ezimage} alt="{'Edit'|i18n('design/standard/node/view')}" border="0"></a>
{/section}
To delete something, you can use
<form method="post" action={"content/action"|ezurl}>
<input type="hidden" name="ContentNodeID" value="{$node.object.main_node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="image" name="ActionRemove" src={"small/edittrash.gif"|ezimage} />
</form>
I use an image here instead of the normal button. You may want to change that to what you have available hth -paul
eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans
|