[pmwiki-users] Conditional Content on Authorization,
sti at pooq.com
sti at pooq.com
Sun Oct 14 22:01:37 CDT 2007
Sannyasin Sivakatirswami wrote:
> WE have this in the side bar of a site:
>
> -----
> *[[{*$Name}?action=edit | $[Edit Page] ]]
> (:if auth admin:)
> *(:pagelist group=-Pmwiki,-Site name=-RecentChanges,-GroupAttributes
> fmt="#jumpbox" order=group,title:)
> (:ifend:)
>
> But it only appears one the page on which I have authorized myself as
> admin..
>
> If I go to another page, the jumpbox disappears, and onlyl the "Edit
> Page" label
> shows up.
That sounds right. (:if auth admin:) tests to see if you have admin authority
for the current page. Its false when you surf to a page where you don't have
admin.
What are you trying to do?
More information about the pmwiki-users
mailing list