<div class="gmail_quote"><div class="gmail_quote"><div class="Ih2E3d">On Wed, Feb 4, 2009 at 6:19 PM, Henrik Bechmann <span dir="ltr"><<a href="mailto:henrik@bechmann.ca" target="_blank">henrik@bechmann.ca</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
I want to surface some (more) admin settings to wiki pages through a<br>
recipe, and wanted to kick some ideas around.<br>
<br>
Initially, I want to allow admins of my websites to set skins through an<br>
admin interface, but I anticipate other uses as well (enabling certain<br>
recipes for example). So I'm searching for a fairly generic way of<br>
approaching this, that could easily be extended.<br></div>
...</blockquote><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On the SiteAdmin.Config wiki page the entry would (in the short run)<br>
look like this:<br>
<br>
EnableRelativePageVars:1<br>
<br></div><div class="Ih2E3d">
Anyone have any thoughts on any of this?<br>
</div></blockquote><div><br>You may want to look at Cookbook/PageConfig for a start. (<a href="http://www.pmwiki.org/wiki/Cookbook/PageConfig" target="_blank">http://www.pmwiki.org/wiki/Cookbook/PageConfig</a>)<br><br>I think security is the single biggest issue you have to deal with. With PageConfig I've tried to err on the side of giving the "real administrator" absolute control over what the "page administrators" can and can't do. I.e., in config.php you can specify which variables can/cannot be set and even specify what valid values are allowed or not; you can specify a list of allowable scripts to include or exclude, etc. I've also made sure that pmwiki conditionals are available so that per-page, per-group, per-author, etc configuration can be easily achieved.<br>
<br>The syntax for the directives on the page is not very user-friendly and needs to be changed - I just haven't put enough thought into what would be good for it... But if it looks like the functionality you are looking for is there and you have an idea on the directive syntax I'd be happy to look into implementing it.<br>
<br>Do note that putting this additional configuration alternative into the mix can really multiply the difficulty of tracking down configuration-related problems. <br><br>-Peter<br></div></div>
</div><br>