Share » Forums » Developer » Editing and templates?

Editing and templates?

Editing and templates?

Tuesday 15 February 2005 3:51:12 am - 2 replies

Modified on Tuesday 15 February 2005 3:53:39 am by Clemens T

Author Message

Eivind Marienborg

Tuesday 15 February 2005 4:37:06 am

Insert this into your template:

{section show=$node.object.can_edit}
<form method="post" action={"content/action"|ezurl}>
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="hidden" name="ViewMode" value="full" />
<div class="editbutton">
   <input class="button" type="submit" name="EditButton" value="{'Edit'|i18n('design/standard/node/view')}" />
</div>
</form>
{/section}

Clemens T

Tuesday 15 February 2005 5:06:08 am

Holy cow, that did the trick! Thanks a lot... wouldn't know how to do it without your help!
Thanks,
Clemens

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu