[pmwiki-users] CMS Behavior in AuthUser . . .

Ben Wilson dausha at gmail.com
Fri Dec 30 10:03:53 CST 2005


I think I've found an answer to a question some have asked about how
to incorporate something like "CMS Like" for AuthUser. In all
probability, this has been discussed ad infinitum, but in case it was
not.

http://www.pmwiki.org/wiki/Cookbook/AuthUserCMSLike

Basically, the site administrator creates a CMS menu page (e.g.
Site.CMSMenu), then edits the site theme template to include this page
instead of the normal PmWiki menu. By adding role-based (i.e. 'edit'
or 'admin') if-then statements, the role-restrictive behavior is in
place. This allows any non-programmer to quickly create CMS behavior.
The recipe gives an example. I also recommend password protecting the
edit of the menu to the "@admin" group. (This assumes "vanilla"
UserAuth that uses the web page to administer users/groups).

PM, it would be nice if we also had the ability to if-then off the
user's group(s). Is that an easy feature?

--
Ben Wilson
" Mundus vult decipi, ergo decipiatur"




More information about the pmwiki-users mailing list