[pmwiki-devel] Double click for admins only...
Patrick R. Michaud
pmichaud at pobox.com
Tue Mar 20 07:38:25 CDT 2007
On Tue, Mar 20, 2007 at 08:20:39AM +0000, Hans wrote:
> Tuesday, March 20, 2007, 8:11:19 AM, christian wrote:
>
> >> In the template, use
> >>
> >> <body $BodyAttr>
>
> > Maybe this could go into the core? What I really mean is that the
> > PmWiki's default template has the '$BodyAttr'. This assumes that it's not
> > necessary to define $BodyAttr in order for it to work.
>
> It is a recommendation for all skin authors to use <body $BodyAttr>.
> Well at least we talked about it before, when we talked about
> recommending having <!--$HTMLFooter--> in the skin template,
> which was adapted by PmWiki skin.
Since we have at least a couple of recipes that are needing to
manipulate <body> and <html>, I guess we could adopt
<html $HTMLAttrFmt>
<body $BodyAttrFmt>
as core standards.
Comments?
Pm
> But where in the cookbook would you put
>
> To add a "double click on page opens it for editing if you are admin"
> in local/config.php, use:
>
> $BodyAttr = CondAuth($pagename, 'admin') ? ''
> : 'ondblclick="window.location.href=window.location.href+\'?action=edit\'";
>
> ?
It should probably go in the EditOnDblClick recipe. :-)
Pm
More information about the pmwiki-devel
mailing list