Hello, all. We have been using Page_TOC 0.9.0 very successfully on MODx 0.9.6. We use it particularly to create large documents out of chunks. We typically output twice on the same page. Once is at the start of the page as a typical table of contents. The second is as a flyout table of contents that follows the reader in the margin so they can view the table of contents without having to return to the top of the page.
This was working perfectly well with version 0.9.0 as demonstrated on this page:
http://www.spiritualoutreach.org/masterplan1page.html
We have just tried doing the exact same thing on another site with 0.9.2 and it does not work. The table of contents is displayed at the top of the page but the flyout table of contents does not display. It is not a CSS or a display issue because, if we hard code text, it displays. It appears there is no output being injected into the div. Here is the malfunctioning page:
http://www.spiritualoutreach.com/cjbook1page.html
Here is the html of the page which is working:
<p>
<!--#toc_plugin#_TOC_OUTPUT-->
<!--#toc_plugin#_START_CONFIGURATION-->
<!--#toc_plugin#_list_type=ul-->
<!--#toc_plugin#_start_level=1-->
<!--#toc_plugin#_end_level=6-->
<!--#toc_plugin#_header=Table of Contents-->
<!--#toc_plugin#_header_tag=h2-->
<!--#toc_plugin#_parent_tag=div-->
<!--#toc_plugin#_parent_tag_id=toc-->
<!--#toc_plugin#_END_CONFIGURATION-->
<!--#toc_plugin#_START_TOC_INDEXING-->
[[Ditto? &parents=`44` &depth=`7` &display=`all` &sortBy=`longtitle` &sortDir=`ASC` &tpl=`CompositeDoc` &noResults=`<p>The requested document is currently unavailable.</p>`]]
<!--#toc_plugin#_END_TOC_INDEXING-->
</p>
<p>
</p>
and here is the html for the working flyout TOC:
<div class="topleftfixed flyout"><a href="#TopAnchor">Display Table of Contents</a><div><!--#toc_plugin#_TOC_OUTPUT--></div></div>[*content*]
Here is the page using 0.9.2 that is not working:
{{donationCJbook}}
<p>
<!--#toc_plugin#_TOC_OUTPUT-->
<!--#toc_plugin#_START_CONFIGURATION-->
<!--#toc_plugin#_list_type=ul-->
<!--#toc_plugin#_start_level=1-->
<!--#toc_plugin#_end_level=6-->
<!--#toc_plugin#_header=Table of Contents-->
<!--#toc_plugin#_header_tag=h2-->
<!--#toc_plugin#_parent_tag=div-->
<!--#toc_plugin#_parent_tag_id=toc-->
<!--#toc_plugin#_END_CONFIGURATION-->
<!--#toc_plugin#_START_TOC_INDEXING-->
[[Ditto? &parents=`104` &depth=`7` &display=`all` &sortBy=`longtitle` &sortDir=`ASC` &tpl=`CompositeDoc` &noResults=`<p>The requested document is currently unavailable.</p>`]]
<!--#toc_plugin#_END_TOC_INDEXING-->
{{donationCJbook}}
</p>
(recall this TOC_OUTPUT is working)
and the non-working flyout menu:
<div class="toprightfixed flyout">{{donationCJbook}}<a href="#TopAnchor">Display Table of Contents</a><div><!--#toc_plugin#_TOC_OUTPUT--></div></div>[*content*]
I’d imagine this is a brain cramp on my part but I don’t see it. I mostly copied and pasted the working html and CSS. Thanks - John