<p><br>
On Jul 30, 2012 3:33 AM, "John Rankin" <<a href="mailto:john.rankin@affinity.co.nz">john.rankin@affinity.co.nz</a>> wrote:<br>
><br>
><br>
> > On Jul 29, 2012 1:42 AM, "John Rankin" <<a href="mailto:john.rankin@affinity.co.nz">john.rankin@affinity.co.nz</a>> wrote:<br>
> >><br>
> >><br>
> >> > In Site.GroupHeader, I have the following:<br>
> >> ><br>
> >> > (:description {*$:Summary}:)(:toc-hide:)<br>
> >><br>
> >> How do you tell pmwiki to include Site.GroupHeader in<br>
> >> {$Group}.GroupHeader?<br>
> >><br>
> ><br>
> > I use a version of Cookbook:AllGroupHeader in local/config.php.<br>
><br>
> OK. If you can change<br>
><br>
> $GroupHeaderFmt =<br>
>   '(:include {$SiteGroup}.AllGroupHeader:)(:nl:)'<br>
>   .'(:include {$Group}.GroupHeader:)(:nl:)';<br>
><br>
> and instead use:<br>
><br>
> $GroupHeaderFmt =<br>
>   '(:toc-hide:)(:nl:)'<br>
>   .'(:include {$Group}.GroupHeader:)(:nl:)';<br>
><br>
> then a small change to pagetoc would work:<br>
> >><br>
> >> function RemoteTableOfContents($pagename,$ref,$self=0) {<br>
> >>     global $TocHeaderFmt,$RemoteTocFmt;<br>
> >><br>
> >>     global $GroupHeaderFmt;<br>
> >><br>
> >>     ...<br>
> >>     $toctext= $GroupHeaderFmt . @$tocpage['text'];<br>
> >><br>
> >>    ...<br>
> >> }<br>
> >><br>
> ><br>
> > Maybe what I'm after isn't quite clear. For this design, I want a<br>
> > top-level<br>
> > toc to appear in an aside (think sidebar, but nothing else). I want this<br>
> > on<br>
> > every page, but rather than having to include (:toc-hide:) on every page<br>
> > in<br>
> > the wiki, I want to have in one place.<br>
><br>
> The above change should achieve this.<br>
><br>
> > I would like it to include all<br>
> > heading displayed, not just those in the page text itself.<br>
><br>
> I am not following what this means. What headings are left out when (as<br>
> pagetoc does) we display the headings found in the page text?<br>
><br>
> JR<br>
> --<br>
> John Rankin<br>
><br></p>
<p>I'll give it a go when I return from vacation. Thanks, John. <br>
</p>