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

    I’ve got Ditto working great in a Press Release section, but I need to have either the first or last item listed use a different template. I was stoked when I found the &tplFirstRow and &tplLastRow parameters, but for some reason they don’t work. They are completely ignored and &tpl is the only thing printed each time. The debug report seems to find the fact that I’m calling &tplFirstRow, and even knows the name of it, but doesn’t display the chunk like it does with &tpl. I’ve been over my spelling over and over and have deleted the chunk and started over. I’ve also tried stripping different parameters out of the Ditto call, thinking that one of them might be choking the first row call, but nothing has worked. Any suggestions?

    ModX version 0.9.6.2
    Ditto Version 2.1.0

    Upload folder full, so here’s a link to the debug report:

    (Link Removed / Unnecessary )


    Thanks for your time.
      • 36592
      • 970 Posts
      Those might be &tplFirst and &tplLast ?
      http://ditto.modxcms.com/files/snippet-ditto-php.html
        • 41824
        • 19 Posts
        That was it! Thank you thank you thank you!

        I was going off this, which I guess is wrong: http://modxcms.com/ditto_parameters.html

        Either that, or it’s for a different version? I can’t figure out what the difference is. All I know is, your suggestion worked perfectly. Thank you again for that!
          • 36592
          • 970 Posts
          Quote from: the_piper at Dec 04, 2008, 09:08 PM

          I was going off this, which I guess is wrong: http://modxcms.com/ditto_parameters.html
          That page is outdated... those parameters are for older versions.
          Refer to the Ditto site ( http://ditto.modxcms.com/ ) for the current version of Ditto.