[pmwiki-devel] Double click for admins only...
Patrick R. Michaud
pmichaud at pobox.com
Mon Mar 19 22:53:47 CDT 2007
On Mon, Mar 19, 2007 at 09:03:54PM -0400, The Editor wrote:
> I have this feature in my skin and I love it...
>
> <body background="$SkinDirUrl/space.gif"
> ondblclick="window.location.href = window.location.href +
> '?action=edit'">
>
> However, I would really like to be able to set this so it only happens
> when someone logs in as an admin, say for example. Quite irritating to
> others... I'm not to up on skins and how to interface them with
> PmWiki. Could someone point me in the right direction?
In the template, use
<body $BodyAttr>
In local/config.php, use:
$BodyAttr = CondAuth($pagename, 'admin') ? ''
: 'ondblclick="window.location.href=window.location.href+\'?action=edit\'";
Pm
More information about the pmwiki-devel
mailing list