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
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:
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).
Thanks for reporting back.
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.