Forums / Setup & design / How to make an 'Edit this page' link?
Maarten Holland
Thursday 15 April 2004 6:54:43 am
Hi all,
I'd like to have an 'Edit this page' link in my site, which is only visible when someone of group 'Editors' or 'Admins' has logged in to my usersite. Can you tell me how to accomplish this?
Cheers,
Maarten
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
Thursday 15 April 2004 11:56:18 am
Thank you for your reply. It´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´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