We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38670
    • 11 Posts
    Hi, I have this problem.

    I'm using a Snippet to get and modify the format of the pub_date of a resource (translate it to spanish).
    I call the snippet in a Chunk, ( the chunk is a Ditto template), but the snippet shows the pub_date of parent document (where the ditto is written) no from the Ditto results (the children) which is what I wanted.

    I hope you could understand me. Any idea to get the variable from the ditto result, no from the parent?

    Thanks.
      • 3749
      • 24,544 Posts
      I think that might work if the snippet is uncached and you use a placeholder for pub_date:


      [!SnippetName? &pdate=`[+pub_date+]` !]


      The Evolution parsing order might, or might not, support that.


      ------------------------------------------------------------------------------------------
      PLEASE, PLEASE specify the version of MODX you are using.
      MODX info for everyone: http://bobsguides.com/modx.html
        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
        • 38670
        • 11 Posts
        Exactly what I needed, thanks Rob!