[pmwiki-users] 2.2.0: add Site.SiteHeader and Site.SiteFooter

H. Fox haganfox at users.sourceforge.net
Wed Jun 20 11:37:04 CDT 2007


On 6/19/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Tue, Jun 19, 2007 at 02:41:12PM -0700, H. Fox wrote:
> > On 6/19/07, Martin Fick <mogulguy at yahoo.com> wrote:
> > >--- "H. Fox" <haganfox at users.sourceforge.net> wrote:
> > >>
> > >> Can conditional markup be put a site-wide header
> > >> that achieves
> > >>
> > >>    Look for a page named GroupHeader in the
> > >>    current group, if that exists we use it,
> > >>    otherwise use "fallback" markup.
> >
> > Or maybe
> >
> >   (:if ! exists {$Group}.GroupHeader :)
> >   (:include Site.DefaultGroupHeader :)
> >
> > since {$Group}.GroupHeader is already included automatically.
> > If that works, it means the "fallback" Proposal #1 comes "free" with
> > Proposal #2, does it not?
>
> This fails the (:nogroupheader:) aspect, since
> Site.DefaultGroupHeader can still end up being included
> even if a page has (:nogroupheader:) in it.
>
> ...unless you're suggesting that (:nogroupheader:) also
> affects the (site-wide) page containing the conditional
> markup above.

I wasn't suggesting that, but upon reflection I'm realizing that the
fallback header is a different animal from the sitewide header, and it
should indeed be affected by (:nogroupheader:).

I hadn't even considered a fallback / default header until this came
up.  Now I'm starting to understand how it could add some useful
capability.

Hagan



More information about the pmwiki-users mailing list