[pmwiki-users] AuthUser (was UserAuth)

Patrick R. Michaud pmichaud at pobox.com
Thu Mar 2 21:18:16 CST 2006


On Thu, Mar 02, 2006 at 05:14:05PM -0700, H. Fox wrote:
> > Now I am at a latter stage : can somebody point me @ some docs in how to
> > activate the attr buttons on any new/edit wiki page ? The goal I wish to
> > reach is to enable users to protect their pages without having to
> > type ?action=attr after they created a page.
> 
> Change
> 
> (:if auth edit:)
> [[{$FullName}?action=edit|Edit]]\\
> (:if auth admin:)
> [[{$FullName}?action=attr|Page Password]]\\
> [[Site.Admin|Site Admin]]\\
> (:if:)
> 
> to
> 
> (:if auth edit:)
> [[{$FullName}?action=edit|Edit]]\\
> [[{$FullName}?action=attr|Page Password]]\\
> (:if auth admin:)
> [[Site.Admin|Site Admin]]\\
> (:if:)

Or even:

    (:if auth edit:)[[{$FullName}?action=edit|Edit]]
    (:if auth attr:)[[{$FullName}?action=attr|Page Password]]
    (:if auth admin:)[[Site.Admin|Site Admin]]
    (:if:)

In looking at the above, I'm wondering if I should add the
"eat one space" convention after (:if:) directives...?  Then
we could write

    (:if auth edit:) [[{$FullName}?action=edit|Edit]]
    (:if auth attr:) [[{$FullName}?action=attr|Page Password]]
    (:if auth admin:) [[Site.Admin|Site Admin]]
    (:if:)

which is a lot easier to read.

Pm




More information about the pmwiki-users mailing list