We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39827
    • 42 Posts
    I got a strange question. I noticed in one of my Modx Revolution site that i used tags like this.
    [[#7.content]] (this pulls the content of resource 7, and places it proccessed)
    [[#9.pagetitle]] (this pulls the pagetitle of resource 9)

    1. Is there any documentation about the [[# tags? I must have figured it out somewhere...
    2. Is this method by far slower than pulling the content of a chunk?

    This question has been answered by Bruno17. See the first response.

    • discuss.answer
      • 4172
      • 5,888 Posts
      this are fastField - tags
      https://rtfm.modx.com/extras/revo/fastfield

      you need to have fastField or pdoTools installed
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 39827
        • 42 Posts
        Yes you are right. Thnx Bruno.
        I guess since its a snippet with multiple options to apply its much slower than pulling content from a Chunk.
          • 3749
          • 24,544 Posts
          If it's short content that you need throughout the site, the fastest and easiest method would be to create new System Settings. Then you can access them anywhere with a setting tag:

          [[++setting_name]]


          If users need to be able to change the settings, ClientConfig from modmore makes it very convenient.

          If you need to modify the data for some users, you can use User Settings or User Group Settings.

          The second-fastest method would be pulling the data from a chunk with a chunk tag:

          [[$chunk_name]]


          That's a good choice if the data is longer and/or needs to be edited.

          I'm always hesitant about FastField because it replaces the MODX parser with its own.

          MIGX is another option, but I don't know how it compares speed-wise to FastField or chunks.





            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            It's not a snippet. It uses an extended parser object so it's handled by a very fast internal query.
              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
              • 39827
              • 42 Posts
              Thank you Bob and Susan for you quick and in depth answers.