[pmwiki-users] Site. PageActions and different Login for Users / Admin
Graham Archer
Graham.Archer at Sun.COM
Tue Apr 1 14:11:50 CDT 2008
Hello,
If I use the "default" Site.PageActions settings like so ...
* %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] ]]
I can log in with with either my username or admin password.
If however I use these PageActions.......
* %item class=browse
accesskey='$[ak_view]'%[[{*$FullName} | $[View] ]]
(:if !auth edit:)
* %item rel=nofollow class=login
accesskey='$[ak_login]'%[[{*$FullName}?action=login | $[Login] ]]
(:if auth edit:)
* %item rel=nofollow class=edit
accesskey='$[ak_edit]'%[[{*$FullName}?action=edit | $[Edit] ]]
* %item rel=nofollow class=diff
accesskey='$[ak_history]'%[[{*$FullName}?action=diff | $[History] ]]
* %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] ]]
I can log in with my username, but my admin username + password just
keeps returning the username/password prompt.
I would like to use the second version so that a users first see the
View and Login tabs, and only after login
do they see the other tabs.
I also note that if I add ?action=edit at the end of the page url I can
actually log in using the admin password
Is there something else I need to add for admin to make the page actions
work?
I'm using PmWiki 2.2 beta 63
Thanks
Graham
More information about the pmwiki-users
mailing list