[pmwiki-users] directives in groupheader

Patrick R. Michaud pmichaud at pobox.com
Sun Apr 2 17:09:32 CDT 2006


On Sun, Apr 02, 2006 at 11:58:50PM +0200, noskule wrote:
> hi list hi pm
> 
> If i put a skinsection directive (like: noleft) in the groupheader it 
> dont work. I guess this is because I put the groupheader with the skin 
> into the page and disable GroupHeaderFmt to style them differently
> 
> Is there a way to solve that problem?

Not really.  I'm assuming your skin template has something like:

    ... 
    <!--wiki:{$Group}.SideBar-->
    ...
    <!--wiki:{$Group}.GroupHeader-->
    ...

where the GroupHeader is being processed and displayed after the
SideBar.  Since the processing of GroupHeader is occurring
after the SideBar, it's too late to prevent it from being
displayed.

You could potentially change the template to have something
like:

    ...
    <div style='display:none'><!--wiki:{$Group}.GroupHeader--></div>
    ... 
    <!--wiki:{$Group}.SideBar-->
    ...
    <!--wiki:{$Group}.GroupHeader-->
    ...

which does a "shadow" processing of the GroupHeader before the
SideBar (i.e., undisplayed), and then does it again at the
appropriate point in the skin.

I suppose we could add another template directive that says
"process markup but don't output", to avoid the need for
the <div style='display:none'>...</div>.  We could also see
about pre-processing all of the <!--wiki:...-> directives
before any of them are displayed, but I fear that down this
path lies madness.

Pm





More information about the pmwiki-users mailing list