Hi everyone,
I’m trying to implement TreasureChest (what a great snippet by the way) to my Modx website.
The website i’m creating is a cloth shop, so I have 2 different categories (men and women), where I created my documents corresponding to my products.
Each document has a TV called
treasure_Id that I fill with the treasure Id Item.
In order to list all my products on one page, I use this ditto call:
[!Ditto? &parents=`23` &display=`all` &tpl=`eshopProductList`!]
here is the chunk eshopProductList:
[[TreasureChest? &item=`[+treasure_Id+]`]]
<h2>[+treasure.item_name+] ([+treasure_Id+])</h2>
<a href="[+treasure.image.src+]" target="_blank">
[+treasure.image.thumb+]
</a>
<p>
<span>Prix:[+treasure.amount+]</span>
[+treasure.add+]
</p>
My problem is: for every Item, I get the same TreasureChest Item name, I supposed this is because of my [[....]] snippet call, but if i use this [!....!] in the chunk, it just displays a [!....!] string..
Is it because I call a snippet in a chunk generated by a ditto call?
Is there any solution to display all my products?
Thanks for helping...