UniversalEditButton
Questions answered by this recipe
Description
The Universal Edit Button is a green pencil icon in the address bar that indicates a web page is editable. It is similar to the orange "broadcast" RSS icon that indicates there is an RSS feed available. This cookbook recipe adds support for PmWiki sites to enable this kind of behavior.
Notes
To install, simply copy ueb.phpΔ to your cookbook directory, and add the following line to your config.php:
include_once("
$FarmD
/cookbook/ueb.php");
Release Notes
See Also
Contributors
Comments
Alternatively, if using AuthUser or some other authentication system that limits editing rights, you could use something like this in a config file:
if ( ( $action != 'edit' ) && ( $action != 'login' ) ) $HTMLHeaderFmt['ueblink'] = "\n" . '<link rel="alternate" type="application/x-wiki" title="' . ( CondAuth('',"edit $pagename") ? 'Edit this page' : 'Log in to edit this page' ) . '" href="$PageUrl?action=edit" />';
--Eemeli Aro March 10, 2009, at 09:37 AM
User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.