We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12092
    • 5 Posts
    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?
      • 26016
      • 561 Posts
      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.
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 12092
        • 5 Posts
        That did it, thanks!