[pmwiki-users] link if the target page is writeable

Patrick R. Michaud pmichaud at pobox.com
Fri Mar 2 08:06:11 CST 2007


On Fri, Mar 02, 2007 at 07:54:26AM -0600, Tegan Dowling wrote:
> > I'd like to use it like this:
> >
> > (:if enabled AuthPw:)
> > Your password provides access to:
> > (:if auth read Target 1:)
> > * [[Target 1]](:if auth read Target 2:)
> > * [[Target 2]](:if auth read Target 3:)
> > * [[Target 3]](:ifend:)
> 
> On the third hand, this is probably silly.  The markup to get the
> behavior that I want is plainly available already, in its
> not-terribly-onerous form above.  In deference to the principle of
> avoiding feature-creep, I'm content to let this go.

You might find it more readable as:

    (:if enabled AuthPw:)
    Your password provides access to:
    (:if auth read Target1:)* [[Target 1]]
    (:if auth read Target2:)* [[Target 2]]
    (:if auth read Target3:)* [[Target 3]]
    (:if:)

Pm



More information about the pmwiki-users mailing list