[pmwiki-users] Controlling display of menu items
Jan Erik Moström
lists at mostrom.pp.se
Fri Jan 4 16:42:20 CST 2008
I want to control who can see different menu items and commands,
I thought I had figured out how to do it ... but I was wrong :-(
In the template I have entered these lines
------------------------------------
======
<!--wiki:pagename[Site.PageActions]-->
000000
------------------------------------
And on the default Site.PageActions I have
* %item class=browse
accesskey='$[ak_view]'%[[{*$FullName} | $[View] ]]
* %item rel=nofollow class=edit
accesskey='$[ak_edit]'%[[{*$FullName}?action=edit | $[Edit] ]]
* %item rel=nofollow class=diff
accesskey='$[ak_history]'%[[{*$FullName}?action=diff |
$[History] ]]
(:if auth upload:)
* %item rel=nofollow class=upload
accesskey='$[ak_attach]'%[[{*$FullName}?action=upload |
$[Attach] ]]
(:if:)
* %item rel=nofollow class=print
accesskey='$[ak_print]'%[[{*$FullName}?action=print | $[Print] ]]
The idea was that is was going to add an if-statement so that
only some commands visible depending on who logs in (three
different groups - non-registered, read access and edit access)
but I can't even manage to include the PageAction page :(
When I view the page, using the admin user, I only see "====== 000000"
What am I missing? (please be gentle ;-)
jem
--
Jan Erik Moström, www.mostrom.pp.se
More information about the pmwiki-users
mailing list