[Pmwiki-users] Issues with WebMenu

Patrick R. Michaud pmichaud
Thu Aug 14 15:37:04 CDT 2003

There are a couple of things you could do besides using the group.php
files.  You could have local.php only include webmenu.php for certain
groups, or you could check for the existence of the webmenu page and
include it only if it exists.  Examples in local.php:

    $group = FmtPageName('$Group',$pagename);
    if ($group != 'SomeGroup') include_once("local/webmenu.php");

will include webmenu.php only for pages not in SomeGroup.  Another possibility:

    $webmenupage = FmtPageName('$Group.WebMenu',$pagename);
    if (PageExists($webmenupage)) include_once("local/webmenu.php");

will include webmenu.php only if a WebMenu page exists within the group.


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.
> cheers,
> -- 
> Robin <robin at kallisti.net.nz>                 JabberID: <eythian at jabber.org>
> Hostes alienigeni me abduxerunt. Qui annus est?
> PGP Key 0x776DB663 Fingerprint=DD10 5C62 1E29 A385 9866 0853 CD38 E07A 776D B663

> _______________________________________________
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com

More information about the pmwiki-users mailing list