We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2327
    • 214 Posts
    I’am sorry Paul, but I have exactly the same problem with this 0.9 version :

    No tag is interpreted, so all appear in the output HTML like HTML comments :

    <div id="content">

    <div class="post">
    <h3 id="post-"></h3>
    <quickedit:content /><!--#toc_plugin#_START_CONFIGURATION-->
    <!--#toc_plugin#_list_type=ul-->
    <!--#toc_plugin#_start_level=2-->
    <!--#toc_plugin#_end_level=3-->
    <!--#toc_plugin#_header=Page Contents-->
    <!--#toc_plugin#_header_tag=h2-->
    <!--#toc_plugin#_parent_tag=div-->
    <!--#toc_plugin#_parent_tag_id=toc-->
    <!--#toc_plugin#_END_CONFIGURATION-->

    <!--#toc_plugin#_TOC_OUTPUT-->

    <!--#toc_plugin#_START_TOC_INDEXING-->
    <h2>Here is a heading</h2>
    <p>Here is some text</p>
    <h2>Here is another heading</h2>
    <h3>Here is a subheading</h3>
    <h3>Here is another subheading</h3>
    <!--#toc_plugin#_END_TOC_INDEXING-->
    </div>
    <!-- close .post (main column content) -->

    </div>
    <!-- close #content -->


    Is it a problem with quickEdit ?

      • 22797
      • 134 Posts
      I’m not sure what the problem would be. I have this running on four separate installations of MODx on live web sites, and it runs fine. The versions of MODx I’m running are 0.9.5 and 0.9.6. I haven’t yet upgraded to 0.9.6.1, so maybe there are some issues with the latest version, if that’s what you’re running.

      Make sure OnWebPagePrerender is checked (and no other events). You could try turning off all other plugins, or one by one until the TOC plugin works. Then maybe adjust the order that the plugins are called, or, if necessary, turn one of them off.

      The only other thing I can think of is possible problems with versions of PHP. One of my servers runs 5.1.4. Another runs 4.3.11. It works on both of those.
        • 2327
        • 214 Posts
        Thank you very much Paul.

        Have someone tested this plugin with the 0.9.6.1 MODx version ? It’s effectively mine (rev 3118) huh huh huh huh

        My PHP version is Version 5.2.1.

        Argh.... :’(

        I haved turn off all other plugins. but the result is the same........

        Can someone test with the 0.9.6.1 ?

        Thanks Paul
          • 2327
          • 214 Posts
          Nobody to to test Page TOC Generator in the Modx version 0.9.6.1 (rev 3118) ?

          Help....... kiss kiss kiss !

          Thank you very much.
            • 2327
            • 214 Posts
            Somebody to test this very interesting plugin on a 0.9.6.1 MODx Version ?

            S.O.S :’( :’( :’( :’(
              • 2327
              • 214 Posts
              Paul,

              I have solve my problem with this solution of Sottwell :

              http://modxcms.com/forums/index.php/topic,20583.msg127502.html#msg127502

              Perhaps there are one or two things to be modified in your last version of code?

              Thank you in any case for this plugin essential! smiley
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                I have to say that I didn’t do anything. I just downloaded the latest from Resources and installed it.

                I played around a bit with the $modx->documentOutput and $source variables out of my own curiosity, but I didn’t change any of the code.
                  Studying MODX in the desert - http://sottwell.com
                  Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                  Join the Slack Community - http://modx.org
                  • 2327
                  • 214 Posts
                  Quite sorry Sottwell if I deformed your remarks : sad… my English is very bad grin

                  I test version 0.9.2, but I have a problem:

                  I miss the closing tag </ul> open to the beginning of the TOC.

                  I have the impression that I had the same problem in the previous version.

                  Not very serious, but the code is not valid XHTML embarrassed.

                  Can somebody test?

                  Thanks. smiley
                    • 11190
                    • 109 Posts
                    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? &amp;parents=`44` &amp;depth=`7` &amp;display=`all` &amp;sortBy=`longtitle` &amp;sortDir=`ASC` &amp;tpl=`CompositeDoc` &amp;noResults=`&lt;p&gt;The requested document is currently unavailable.&lt;/p&gt;`]]
                    <!--#toc_plugin#_END_TOC_INDEXING-->
                    </p>
                    <p>
                    &nbsp;
                    </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? &amp;parents=`104` &amp;depth=`7` &amp;display=`all` &amp;sortBy=`longtitle` &amp;sortDir=`ASC` &amp;tpl=`CompositeDoc` &amp;noResults=`&lt;p&gt;The requested document is currently unavailable.&lt;/p&gt;`]]
                    <!--#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
                      http://www.spiritualoutreach.com
                      Making Christianity intelligible to secular society
                      • 6892
                      • 7 Posts
                      Hi Everyone, I hope someone can help with a weird problem I get using Page TOC Generator.

                      I run ModX 0.9.6.1p2 and use the Page TOC Generator plugin on most pages of my website. It works absolutely fine everywhere.

                      I use it in 2 types of pages:
                      1 - in articles to create a table of content (works perfectly everywhere)
                      2 - on a photolibrary page, again to create a table of content (works fine, until I put over a certain amount of code on the page)

                      You can see the photolibrary with plugin working correctly on this page: http://www.hedgelink.org.uk/index.php?id=17. Note the "In this category" heading on the top right, which is generated using the Page TOC Generator plugin.

                      On this page: http://www.hedgelink.org.uk/index.php?id=15, the plugin doesn’t seem to work correctly. The "In this category" heading is generated, but that’s where it ends.

                      Both pages use the same template with the following plugin setup:
                      <!--#toc_plugin#_START_CONFIGURATION-->  
                      <!--#toc_plugin#_list_type=ul-->                                                  
                      <!--#toc_plugin#_start_level=3-->                                                 
                      <!--#toc_plugin#_end_level=4-->                                                   
                      <!--#toc_plugin#_header=In this category-->                               
                      <!--#toc_plugin#_header_tag=h4-->                                            
                      <!--#toc_plugin#_parent_tag=div-->                                             
                      <!--#toc_plugin#_parent_tag_id=ArticleNavigation-->                                        
                      <!--#toc_plugin#_END_CONFIGURATION-->  
                      <!--#toc_plugin#_TOC_OUTPUT-->


                      When I remove a large chunk of the code that generates the library photos, suddenly the table of content is generated again.

                      At the moment the HTML isn’t valid on either of these pages. But as far as I can see that’s not the problem, because on one page the plugin works, while on the other it doesn’t.

                      I hope someone can point me in the right direction.

                      Thanks!