[pmwiki-users] New Recipe--Members Offices
Bronwyn Boltwood
bronwyn at bronwynb.info
Sat Mar 4 12:13:42 CST 2006
On 3/3/06, The Editor <editor at fast.st> wrote:
>
> f anyone wants to take a look, it is at Profiles/Caveman on the
> PmWiki site. I have a question or two and would be open to ideas for
> strengthening it. Let me know if there is any thoughts about whether
> or not this should be added to the cookbook. Perhaps with some help
> from a few more experienced coders, it would be something worth
> adding.
>
I was going to add a bunch of tips and suggestions to the page, but I
couldn't get my wikistyle definition to work. So I'm putting them here
instead.
Re Step 1:
Use one of the enhanced newpagebox recipes (
http://www.pmwiki.org/wiki/Cookbook/NewPageBox, lower down on page or
http://www.pmwiki.org/wiki/Cookbook/NewPageBoxPlus) and the {$AuthId} page
variable (http://pmwiki.org/wiki/PmWiki/PageVariables) to more easily create
the office pages:
(:newpagebox base=Profiles.HomePage label="Create office" button=right
value={$AuthId}:)
The Current Offices command can be simplified to:
(:pagelist group=Profiles fmt=#title list=normal name=-SideBar:)
----
Re Step 3:
Simplify maintenance by using
(:include Profiles.SideBar:)
to create the sidebars for the supporting groups. Then they'll reflect
edits without you lifting a finger.
-----
Re: Final Thoughts, limit editing to appropriate people:
It sounds like you must be using AuthUser anyway, so take advantage of it.
By adding [@?action=attr@] to the page URL, you can add passwords for read,
edit, attributes, and admin. You'd want to add an edit password, in this
format:
id:<person's AuthId>
e.g. id:bart if the person's login name is bart. See Cookbook:AuthUser for
more information.
Bronwyn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060304/746b095c/attachment.html
More information about the pmwiki-users
mailing list