Hi all from a newbie!
I’m using Ditto to build some kind of gallery, with the structure as follows:
Main page (with Ditto, using {{dittoChunk}} as template, collecting all subfolders)
- subfolder1 ( with $myTV = /image/path1)
- subfolder2 ( with $myTV = /image/path2)
- subfolder3 ( with $myTV = /image/path3)
- subfolder4 ( with $myTV = /image/path4)
{{dittoChunk}} calls [[mySnippet]] with $myTV
[[mySnippet]] uses $myTV to look up image dimensions and outputs them to [+myPH+]
{{dittoChunk}} inserts [+myPH+] into HTML.
Ok, so you knew it

Older versions evaluate the snippet just once, so very row of Ditto output had the same value of [+myPH+]. Well, starting from Ditto 1.1b2 it almost works the way I expected it, but: The first two rows share the same value of [+myPH+], starting from row 2, [+myPH+] changes it’s value according to the image it was generated on - just that it’s shifted down by one row.
Can someone guide me to a solution? Please note: I’m no experienced coder, I’m able to explore and adapt code, but I didn’t dive too deep into MODx bowels to really see who is guilty, me, MODx or Ditto...
Thanks a lot, chris
And to prevent a lot of

: above concept could make layout life easier, because every image has a different size and needs a dropshadow... Oh, and before you ask me: I didn’t use any of the available gallery systems because I wanted to keep things simple. And so they were, until now...