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

Tegan Dowling tmdowling at gmail.com
Wed Feb 28 11:33:32 CST 2007


It would be so nice to have a shorthand form of this kind of link

[[{TargetPage}R]] for display link if the user is auth read taget

Or some other syntax.

Other than the conditional that PM provided below to get this result,
if I'm listing a bunch of links I sometimes rely on a pagelist and the
default behavior that suppresses display of pagelist results for which
the user lacks read authorization.

Anything one could add to config.php to create such shorthand for
conditional-links?

On 2/28/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Wed, Feb 28, 2007 at 06:18:54PM +0100, noskule wrote:
> > hi list
> >
> > is it with the conditional markup somehow possible to show a link only if the
> > target page is readable? coundnt find something in the docs.
>
> (:if auth read TargetPage:)[[link to target -> TargetPage]]
>
> Pm
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>



More information about the pmwiki-users mailing list