We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9691
    • 6 Posts
    Hi
    I have a little problem with TV. I am new in Revolution and ditto3 bot changed.

    I get randomily one document of a list with
    [[Ditto? &tpl=`img_nahled` &startID=`38` &display=`1` &randomize=`1`]]


    and processiong it with this template
    <a href="[[+obrazek]]" rel="lightbox">
      <img src="[[+obrazek]]" />
    </a>
    


    The whole problem is, that I have a TV ’obrazek’ assigned to the document with addresses of images and Ditto doesn’t return the TV ’obrazek’ or returns it empty (the tvs are not empty smiley. It gives me ’title’, ’content’ and others but not the TV. Am I doing some mistake?

    Thank you
      • 3749
      • 24,544 Posts
      Ditto is deprecated in Revolution, so you should probably switch to getResources. The parameters are mostly the same.

      To use TVs in getResources, you need to either prefix your 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
        • 9691
        • 6 Posts
        Thank you BobRay!
        It is strange that in package manager is ditto, but it is 3.0 alpha version with any documentation.
        You helped me very much.