We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27889
    • 415 Posts
    This is an auto-generated support/comment thread for Automatic TOC & Navbar.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    This plugin allow you to have an automatic generated table of content in the page you want, and add a navbar (top-home-back) in front of the heading.
    ask for functionnality to add
    feedback are welcome
      MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
      MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
      • 25868
      • 9 Posts
      This plugin isn’t working in Internet Explorer. Is normal?
        • 27889
        • 415 Posts
        no, can you tell me more ?? How do you call it ? What is the version of modx you use ? Have you made some change in the snippet ? Have you put a correct id to the body ?
          MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
          MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
          • 23050
          • 1,842 Posts
          Hi Soda,

          I can’t get Automatic TOC runs on 0.9.6 install.

          I’ve installed the plugin, checked OnWebPagePrerender, put <!--sommaire--> in doc content (even tried in template) but the TOC is not built. I see <!--sommaire--> in web page.

          Didn’t change anything in the plugin, added dpsite as an #id of the body.
            • 27889
            • 415 Posts
            Hello Perrine, I haven’t tested it on the 0.9.6, but there is an other snippet in the repo that do the same and appears to be better:http://www.modxcms.com/Page-TOC-Generator-1274.html
              MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
              MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
              • 23050
              • 1,842 Posts
              Thank you Soda smiley
                • 14222
                • 55 Posts
                Bonjour,

                Est ce qu’il est possible de modifier ce plugin de façon à ce la navbar permette page précédente - sommaire - page suivante ?
                  • 27889
                  • 415 Posts
                  Salut Ji_D,
                  il n’est pas possible de la faire avec les paramètres, en effet on ne sait pas à quoi correspond page suivante-précédente, mais tu peux utiliser Ditto qui permet d’avoir une pagination "templatable" ou tu insères page-suivante page-précédente facilement.
                    MODx Sites & Prestations: http://dp-site.fr [Last MODx Site]
                    MODx Repository: [HOME] [MetaTagsExtra] / Current Dev: [xFDM]
                    • 14222
                    • 55 Posts
                    Ok merci smiley
                      • 2327
                      • 214 Posts
                      Bonsoir,

                      J’ai teste Autotoc avec succès mais j’ai une question bé-bête:

                      Le paramètre $heading_level =’2’; permet de spécifier le niveau de titre à afficher dans le sommaire, ici les titres h2 des doc.

                      Mais si je veux h2, h3 et h4, je n’y parviens pas. En plaçant le paramètre $heading_level sur 5, il n’affiche que les titres de niveaux 5, et non ceux des niveaux inférieurs.

                      Au secours...C’est normal ?


                      J’ai bien tenté de faire fonctionner Page TOC Generator, mais en vain..i....et j’apprécie beaucoup l’effet de scrolling sur Autotoc.

                      Une solution ? Merci.