[pmwiki-users] FAQs and anchors and TOC

Roman romat2 at gmail.com
Mon Nov 7 03:52:19 CST 2005

Thank you for (:toc-float:). But on my FAQ list page I need to combine
$TocFloat switch with remote TOC. (:toc-float:) markup is able to
switch $TocFloat but also generates TOC which is unwanted on (my) FAQ
list page. You gave me the idea so defined this markup:


function TocFloatToggle() {
  global $TocFloat;
  $TocFloat = !$TocFloat;

(May be it can shorter, I am only administrator.)

And now I use it this way:

(:toc-page FAQPAge1:)
(:toc-page FAQPAge2:)
(:toc-page FAQPAge3:)
(:toc-page FAQPAge4:)


07 Nov 2005 16:46:11 +1300, John Rankin <john.rankin at affinity.co.nz>:
> On Saturday, 5 November 2005 6:44 AM, Waylan Limberg <waylan at gmail.com> wrote:
> >> - I can easily make the anchor text a variable -- you are the first
> >>   person who has wanted to change it :)
> >
> >This would be much appreciated.
> Download the latest version and set
> $DefaultTocAnchor = 'faq'; ## in your config.php file.
> >Your welcome. And thanks for working through this with me, despite our
> >differing approaches.
> There's always more than one way to do it...
> From Roman's email:
> >problem is that in normal pages I want to
> >have floating TOC but on FAQ list page I want notfloating TOC
> Download the latest version and use
> (:toc-float:)
> This rverses the setting of $TocFloat for the current page.
> If $TocFloat is false, (:toc-float:) floats the toc to the
> right. If $TocFloat is true, (:toc-float:) produces an
> unfloated toc.
> Download from
> http://www.pmwiki.org/wiki/Cookbook/PageTableOfContents
> Let me know if there are any problems.
> --
> JR
> --
> John Rankin

More information about the pmwiki-users mailing list