How to make an 'Edit this page' link?

How to make an 'Edit this page' link?

Thursday 15 April 2004 6:54:43 am - 3 replies

Author Message

Mark Irvine

Thursday 15 April 2004 8:22:26 am

Hi Maarten,

This should do the trick:

{section show=$node.object.can_edit}

<form method="post" action={"content/action/"|ezurl}>
  <input 
     type="hidden"
     name="ContentObjectID" 
     value="{$node.contentobject_id}" 
  />
  <input 
     type="submit" 
     name="EditButton" 
     value="Edit this page" 
  />
</form>

{/section}

Hope that helps,
Mark

Maarten Holland

Thursday 15 April 2004 11:56:18 am

Thank you for your reply. It&acute;s just what I needed! Where can I find this sort of code? I have some trouble finding the things I need at ez.no and can&acute;t find the code in the admintemplates. Do you have a hint or URL for more of this code? I need other things like Bookmark and Notification too, and hate to ask every time.

Thank you for your time!

Bjørn Kaarstein

Thursday 15 April 2004 1:02:18 pm

If you install a site with demo data, you can check the templates used there for valuable code hints. You can also check the templates for the admin interface.

Regards Bjørn

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.