We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8168
    • 1,118 Posts
    Hi is it possible to place a TV into the &parents value of a ditto call?

    e.g.

    [[Ditto? &parents=`[*latestnewsValue*]` &depth=`1` &tpl=`latestnewsDittoTpl` &sortBy=`menutitle` &sortOrder=`ASC`]]


    This does not work when tested it list all docs and not those that are from the contents of the [*latestnewsValue*] TV - which is an integer value - e.g. 10

    However when I hardcode add in the 10 it works e.g.

    [[Ditto? &parents=`10` &depth=`1` &tpl=`latestnewsDittoTpl` &sortBy=`menutitle` &sortOrder=`ASC`]]




    Why is this? I need it to be able to read in the TV value and work? Any ideas?

    Cheers,



    dubbs
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Try it calling Ditto uncached [!Ditto ... !]
        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
        • 8168
        • 1,118 Posts
        You legend Susan! I could kiss you!
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          <cue a Calvin and Hobbes reaction> grin grin
            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