We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    This is an auto-generated topic for <a href="http://modxcms.com/extras/package/555">DittoFormat 1.0-2</a> by alik.

    Brief Description:
    Snippet that splits Dittos results into groups so that they can be formatted into rows/columns with CSS as required.

    See snippet homepage: http://setpro.net.pl/software/ditto-stuff
      • 26931
      • 2,314 Posts
      Hi there,

      thanks for sharing!

      i get an error when i try to download the snippet:
      Error! For some reason, the file dittoformat.txt was not found.
        • 1122
        • 209 Posts
        I encourage all users of my DittoFormat to upgrade to the version attached to this post or to my site at http://setpro.net.pl/software/ditto-stuff#attachments (the link in repository is broken over months and it is unlikely that it will be improved in predictable future).

        Recently I had to use DittoFormat in my own project and it was the first time when I was testing it myself. I have discovered several small (but painful) shortcomings -- among other things, it appeared that the snippet does not render wrapper around the last (incomplete) group correctly.
          • 4971
          • 964 Posts
          Do you have a sample of how the output looks?
          Thanks...
            Website: www.mercologia.com
            MODX Revo Tutorials:  www.modxperience.com

            MODX Professional Partner
            • 31961
            • 23 Posts
            Hey - this was exactly what I was after - shame there isn’t any native support in Ditto for this type of functionality.

            Question is...

            So I now have my wrapper div, outputting 3 ditto calls in a row. How do I insert a custom snippet for the last item in that row? Bit like &tplLast, but for the particular row.

            Please help!
              • 31961
              • 23 Posts
              Ok - managed to solve my own problem:

              This did the trick: http://modxcms.com/forums/index.php?topic=29779.0
                • 1122
                • 209 Posts
                Hi, last item within each row cannot be marked with the currently existing code of DittoFormat. However, with the medium-level knowledge of Ditto and PHP its code might be slightly extended in order to solve this task.