We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3295
    • 19 Posts
    I have a hierarchy of documents in my site like so. The product page lists the product groups or categories with a little blurb about each category.

    The blurb is pulled into the product page with a ditto call and a chunk.

    ditto call to bring in all the category blurbs and display
    [!Ditto? &orderBy=`createdon ASC`  &depth=`1` &tpl=`ditto-child-cats`!]


    chunk ditto-child-cats to pull in blurb from categorys
    <div id="bicycles" class="grid_4">
    <p class="sub-cat">[+title+]</p><p class="desc-type">[+content+]</p></div>
    <div class="clear"></div>


    Here is the tree of documents with the parent, child, grandchild
    Product
    category 1
    Product detail 1
    product detail 2
    product detail 3
    product detail 4

    Sub-product 2
    Product detail 1
    product detail 2
    product detail 3
    product detail 4


    Here is where i am having a time.

    I have a template variable for the product detail template that allows for an image upload to the product detail pages, I am trying to get those images to also display next to corresponding blurb on the products page, 2 levels up.

    Any help with this?

    is this confusing because it confusing me but I am really stuck. So far this have been smooth and everything look good until now.








      • 16895
      • 87 Posts
      Probably a bit late here, but to show template variables in a Ditto template you just write them as any other placeholder, so
      [+template_variable+]


      Even if the OP never reads this, maybe it’ll be useful to someone...