We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18878
    • 210 Posts
    Sorry for the dumb question: is it possible to call a document’s content from a chunk?

    I mean, placing something like this on a chunk: @DOCUMENT 54

    Thanks.
      • 3749
      • 24,544 Posts
      The GetField snippet will get the content (or any field) from a snippet so you could put a GetField snippet tag in the chunk. It should be parsed *if* the chunk is included with a standard chunk tag (rather than being processed by another snippet such as eForm).

      If you say what you’re trying to do and why, there might be an easier way.
        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
        • 18878
        • 210 Posts
        Quote from: BobRay at Mar 03, 2010, 08:54 PM

        The GetField snippet will get the content (or any field) from a snippet so you could put a GetField snippet tag in the chunk. It should be parsed *if* the chunk is included with a standard chunk tag (rather than being processed by another snippet such as eForm).

        If you say what you’re trying to do and why, there might be an easier way.


        Thanks a lot, that snippet is exactly what I needed!