[pmwiki-users] 2.2.0: add Site.SiteHeader and Site.SiteFooter
    H. Fox 
    haganfox at users.sourceforge.net
       
    Tue Jun 19 16:41:12 CDT 2007
    
    
  
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.
>
> 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
    
    
More information about the pmwiki-users
mailing list