We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8416
    • 173 Posts
    Hi,
    I’m using a Ditto to list of bunch of products as follow:
    [!Ditto? &parents=`id*` &depth=`1` &sortBy=`longtitle` &sortDir=`ASC` &summarize=`20` &paginate=`1` &paginateAlwaysShowLinks=`1` &tpl=`product_tpl`!]
    


    In the product_tpl template chunk, I have defined a table with 4 columns to display the product as follow:

    <div id="productList"> 
    <table border="0" cellpadding="0" cellspacing="0" width="645">
    <tbody>
    <tr>
              <td  style='width:166px; height: 108px;'  >
    [[MaxiGallery? &display=`embedded` &embedtype=`lightboxv2`  &gal_query_ids=`[+id+]`  &disable_rightclick=`1` &limit=`1` &galleryPictureTpl=`galleryPictureProductTpl`  &galleryOuterTpl=`galleryProductOuterTpl`]] </td>
              <td  style='width:277px; height: 108px; padding: 3px;'  ><b><a href="[~[+id+]~]">[+title+]</a></b><br />[+description+]</td>
              <td style='width:100px; height: 108px;'>[+introtext+]</td>
              <td style='width:100px; height: 108px;'>[*#getPicture*]</td>
    </tr>
    </tbody>
    </table>
    </div>
    


    Now I need to be able to edit the product "description", "introtext" and set the picture when one is logging in (via the manager) for each product retrieved by Ditto. I created a TV getPicture but nothing shows-up. Please help me to sort this out... Thank you.
    Eric
      • 36592
      • 970 Posts
      In your Ditto template...
      <td style='width:100px; height: 108px;'>[*#getPicture*]</td>

      [*#getPicture*] should be [+getPicture+] and the input type and the widget of this TV shuld be ’Image.’

      By the way, in your Ditto call...
      &parents=`id*`

      This looks strange...

        • 8416
        • 173 Posts
        Thanks, I got it now by using [+#getPicture+].

        By the way there was a typo for &parents=`id*` it is &parents=`id`...