[Pmwiki-users] Issues with WebMenu

Carlo Strozzi carlos
Thu Aug 14 15:23:30 CDT 2003


On Fri, Aug 15, 2003 at 08:43:36AM +1200, Robin wrote:
> On Thu, Aug 14, 2003 at 03:28:11PM +0200, Carlo Strozzi wrote:
> > I suggest you include webmenu only in per-group customization files,
> > i.e. SomeGroup.php, rather than in the common local.php file.
> Ah, that'll work. I still wish it worked the way I'd (that way it 
> doesn't require me to say which groups will and won't have menus), but 
> this is a good enough compromise.

Yes. As I said in a previous posting, the way PmWiki can be customized
--- that is by overriding sections of code --- is quite flexible, but
lends itself to introducing unwanted couplings amongst add-on packages,
like webmenu, edit-preview, and that. A better approach to customization
(IMO) is to include only what you need, and only where you need it.
I personally also use conditionals in local.php and SomeGroup.php, like:

 if ($action == "... something ...") include_once("local/some-add-on.php");

in order to reduce unwanted couplings even more. It works well for me.

Carlo
-- 
For best reading please set the Courier font.
Freedom for Business: http://swpat.ffii.org



More information about the pmwiki-users mailing list