We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5861
    • 4 Posts
    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?
      • 19980 ☆ A M B ☆
      • 275 Posts
      Quote from: cowboybandit at May 29, 2010, 02:26 AM



      Problems:
      1. The dynamic Ditto call using [~[+id+]~] does not pull the ID of the wayfinder link I click on


      try Ditto call using [~[*id*]~]

      this way id is a TV parameter
        modx and ecommerce pro