[Zope] 'Edit This Page' ... a simple solution

Jonothan Farr jfarr@real.com
Thu, 14 Oct 1999 10:09:44 -0700


> 
> -=-=-=-=-= Question -=-=-=-=-=-
> 
> Can someone please point me to code that will 
> 
> <> display an 'Edit this page' link on pages for which
> the viewer has edit permission
> <> redirect user to an 'edit & save' window
> <> hide the link from other users


Here's a better solution:

<dtml-if "AUTHENTICATED_USER.has_permission('Edit', this())">
<p><font size="-1"><a href="manage_main">Edit Page</a></font>
</dtml-if>

-jfarr

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hi! I'm a signature virus.
Copy me into your .sig to join the fun!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~