We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9912
    • 4 Posts
    Hi,

    I am working on a website powered by modx Revolution and I have a problem with ditto:

    There is no output of the template variables. I have defined 2 variables (text and image) but the output is always empty.

    With some debugging I have found the ditto function "appendTV" (I think thats the function which loads the TVs). The result of the xpdo-sql-query is empty ... and at this point I have stopped because I have no experience with xPDO.

    Has the handling of TVs with ditto changed or is this a bug?


    -------------------------------------
    Versions:
    Modx 2.0 beta5
    Ditto 3.0 alpha2

    Chunk-Code:
    [[+pagetitle]]
    [[+thumbnail]]
    [[!+introtextAlt]]
    -------------------------------------


    Many thanks for your support,
    Stefan
      • 3749
      • 24,544 Posts
      I’m not sure about the Revo version of Ditto, but if your requirements are simple, getResources does most of the same stuff. By default, getResources wants you to use a ’tv.’ prefix on the TV tags:

      [[+tv.thumbnail]]


      You might try that with Ditto. If it doesn’t work, you could switch to getResources.


      BTW, you can remove the tv prefix requirement in getResources with &tvPrefix=`` (only works in the latest version of getResources).
        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
        • 9912
        • 4 Posts
        You are right, it works with getResources ... smiley

        thx!
          • 3749
          • 24,544 Posts
          Thanks for reporting back. smiley

          TV tags should work with Ditto, no one has reported that as a bug, but it’s not working for me either.

          Feel free to report it using the Jira link at the top of this page.


            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