I’m using Ditto to display some banner ads on the side of my page. In my Template I’m using this code to call Ditto:
[[!Ditto? &startID=`25` &tpl=`Ads`!]]
So ’25’ is the id of a folder in Resources called ’Ads’ that has documents in it. If I don’t provide a &tpl parameter then it lists each document correctly, but I need to format each item so that it only shows the [+content+] placeholder. So I created a Chunk called ’Ads’ with the following code:
[+content+]
But now my items are throwing this error:
&tpl either does not contain any placeholders or is an invalid chunk name, code block, or filename. Please check it.
I can’t see anything wrong with what I’ve got, am I missing something?
AFAIK, Ditto 3 only works in Revo. Since you’re presumably running it there, the first thing I would try is to lose the second exclamation point.... you’re using Evo syntax in that call.
http://rtfm.modx.com/display/revolution20/Using+Snippets
Chunks also become "one-sided" in Revo.