We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29039
    • 58 Posts
    Ditto not working with @CODE: as template.
    [[Ditto? &summarize=`5` &tpl=`@CODE:<h3><a href="[~[+id+]~]" title="[+title+]">[+title+]</a></h3>`]]
      • 5727
      • 160 Posts
      I’m totally guessing here, relying on my poor memory, but I don’t think you can use @CODE there.
      You need to set a chunk’s name.
        Olivier Deland
        Montreal, Canada - Web Developer
        • 27376
        • 576 Posts
        It’s not working there because your code has an ’=’ character in it. The current MODx parser is limited in such a way that it won’t act as desired if there are ’=’ characters within the value of a snippet parameter.

        You will have to create a chunk or a file (using [tt]@FILE[/tt]) for that template.
          • 29039
          • 58 Posts
          @sirlancelot Thank You Sir!