I am new to MODx but loving it so far. I have come across a problem that I am having problems solving. I have created a template that uses Ditto to display several images I have in my shopping cart. The call is as follows
[[Ditto? &parents=`[~[+id+]~]` &tpl=`productDisplayChunk` ]]
I have created the productDisplayChunk chunk as follows
<a href="[~[+id+]~]"><img src="[+product_image+]" width="195" height="195"></a>
And have created a TV called "product_image"
I have stripped it down to get it to work but it does not seem to want to work when I have it all put together as above.
Problems:
1. The dynamic Ditto call using [~[+id+]~] does not pull the ID of the wayfinder link I click on
2. The [+product_image+] call in the chunk does not work. If I hard code an image in there it works fine but if I leave it as is, the displaying page just returns " width="195" height="195">
Any ideas on how I can get this to work. Essentially I am trying to create my template so that when a product category is clicked the Ditto call is used to return all the images of the products under that category in a linked table. Any ideas why the above won’t work?