On 6/19/07, Martin Fick <[EMAIL PROTECTED]> wrote:
> --- "H. Fox" <[EMAIL PROTECTED]> 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.
>
> Would this not work?
>
> (:if exists {$Group}.GroupHeader :)
> (:include {$Group}.GroupHeader :)
> (:else:)
> (:include Site.DefaultGroupHeader :)
> (:endif:)
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?
So does "Possibility 3".
Hagan
Ref.: http://www.pmwiki.org/wiki/Test/VoteOnSiteHeader
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users