[pmwiki-users] Hiding links in menu [tip sharing]

Jiri Hladůvka / OBUTEX admin at obutex.com
Mon Apr 23 11:50:00 CDT 2007


I am missing a conditional like
(:if auth read <Group>.<Page>:)

Instead of too complex testing (:if expr member @usrs1 || member @usrs2 
|| ...
I found such a workaround:

1) put into <Group>.<Page> text
(:if false:)
[[#hiddenLink]]
[[<Group>.<Page>|<caption>]]
[[#hiddenLinkEnd]]
(:ifend:)

2) put into the menu text
(:include <Group>.<Page> #hiddenLink#hiddenLinkEnd:)

Thus only visitors having Read <Group>.<Page> permision can see the link.

Has someone another tip ?

Regards,
Jiri



-- 
OBUTEX s.r.o
Ing.Jiří Hladůvka
Zlatovská 22
911 01 Trenčín

tel.: +421 (0)32 6587000
mailto:admin at obutex.com

http://www.obutex.com





More information about the pmwiki-users mailing list