We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4041
    • 788 Posts
    After a recent thread asking about a way to figure out which snippets/chunks/plugins etc were running on a page, I fixed up this little diagnostic tool snippet.
    page_element_list prints you a list of all snippets,chunks, tvs,placeholders,plugins, and settings each page uses, if you are logged into the manager and view the frontend pagge(s).

    Unzip the attached "page_element_list.zip" on your local comp, open the "page_elements_list.snippet.php" file and see the usage instructions at the top.

    Feedback welcomed and hope it comes in handy wink


    Addition: element_list module

    element_list compiles lists of
    (1) a condensed unique list of all elements
    (2) snippets, chunks, placeholders, settings, and tvs and provides a link to the found element.
    Unzip the attached "elements_list_0.0.1.zip" and see the install.txt. [ed. note: breezer last edited this post 14 years, 8 months ago.]
      xforum
      http://frsbuilders.net (under construction) forum for evolution
      • 4310
      • 2,310 Posts
      Thanks Breezer.
      Will give it a try tomorrow
        • 38243
        • 9 Posts
        It works great!
        Could you provide a recursive version, which iterates over all pages of the site?

        At least I would like to know which snippets are used/not used at the whole site.

        BR - Disky
          • 4041
          • 788 Posts
          I have been working on a module for the manager which shows a condensed list of elements and also specific lists of snippets,placeholders, chunks, and site settings. Its looking pretty good and I should have a releasable version by tomorrow, I'll attach it to the first post here.
            xforum
            http://frsbuilders.net (under construction) forum for evolution
            • 4041
            • 788 Posts
            I added the element_list module to the first post for anyone interested smiley
              xforum
              http://frsbuilders.net (under construction) forum for evolution
              • 38243
              • 9 Posts
              Wohu - better late than never a response from me!


              THANKS - this is exaclty what I was looking for and works perfect!

              Sadly I havent received a notification of your new posts - thus I discovered element_list luckyly right now :-/


              BR / Disky42
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Does this also detect snippets, plugins or @EVAL TVs that have runSnippet() or getChunk() etc in their 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