[pmwiki-users] GroupHeader above Title?

Patrick R. Michaud pmichaud at pobox.com
Wed Dec 14 12:02:54 CST 2005


On Wed, Dec 14, 2005 at 06:45:14PM +0100, Mikael Nilsson wrote:
> I'm fiddling with my GroupHeaders, and I've started to become annoyed by
> the fact that all headers end up below the title.
> 
> The relevant part of my template is :
> <!--PageTitleFmt-->
>           <h1>$Title</h1>
> <!--/PageTitleFmt-->
> 
> <!--PageText-->
> 
> and GroupHeaders end up at the top of PageText (right?).
> 
> I'd like something like:
> 
> <!--GroupHeader-->
> 
> <!--PageTitleFmt-->
>           <h1>$Title</h1>
> <!--/PageTitleFmt-->
> 
> <!--PageText-->
> <!--GroupFooter-->
> 
> Is there a way?

Eliminate the title from the template, and put !{$Title} in
the GroupHeader.  Or, set the following in pmwiki.php:

    $GroupHeaderFmt = '(:include $Group.$GroupHeader:)(:nl:)!$Title(:nl:)';

which adds !$Title to the markup after the GroupHeader.

Note, however, that GroupHeader and GroupFooter are only displayed
when ?action=browse (they're considered to be part of the page markup),
so the page title might not appear with other actions.

Pm




More information about the pmwiki-users mailing list