We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16068
    • 6 Posts
    Is this a bug or a know issue?

    I have Ditto calling a chunk like so.

    [[Ditto? &startID=`[[*id]]` &tpl=`product_summary` &sortBy=`menuindex` &sortDir=`ASC`]]



    Chunk code

    <div class="single-product">
    <a href="[[~ [[+id]] ]]"><h2>[[+longtitle]]</h2></a>
    <a href="[[~ [[+id]] ]]"><img src=" [[*product-image]] " alt=" [[*image-alt]] "/></a>
    [[*product-description]]
    </div>


    The longtitle variable is being output but the TVs are not.
    Any suggestions?


    Thank you in advance.
    Mike
      • 3749
      • 24,544 Posts
      Ditto is deprecated and not supported for Revolution. getResources is the replacement and most of the parameters are the same.

      You would want to use [[+tv-name]] and you’d need to either prefix the TVs with "tv." or use &tvPrefix=``
      You also need &includeTVs=`1`
        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