Forums / Setup & design / Edit content - self
Stéphane Cloutier
Sunday 19 October 2003 9:49:56 am
How would you add a button to edit content created by oneself? I seem to not find any docs on this site about doing this.
Qupanuaq - Snow bunting
Adolfo Barragán
Friday 24 October 2003 12:00:32 am
In my site I did it so:
{section name=Announcements loop=$announcement_list} ... {section show=eq($current_user.contentobject_id, $Announcements:item.object.owner_id)} <form name="edit_announcement" method="post" action={"content/action"|ezurl}> <input type="hidden" name="ContentObjectID" value="{$Announcements:item.contentobject_id}" /> <input class="button" type="submit" name="EditButton" value="{'Edit'|i18n('design/standard/node/view')}" /> </form> {/section} ...
I hope this help you
RegardsAdolfo Barragán