We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25132
    • 129 Posts
    Hi Everybody

    We had a simple text ditto call set up this morning calling a template chunk with a number of template variables in it. Everything was working fine.

    We then changed the template variables’ and template chunk’s names to keep them in line with other naming conventions on the site but now it suddenly doesn’t work anymore. I just can’t seem to see what’s going wrong?! We only over-typed the names. We even took the template variables off the templates and reinstated them but to no avail. We also deleted and keyed all template variable data in again, but also no luck. It pulls in the pagetitle ok but none of the tvs.

    Here is the code:

    Ditto Call:

    [!Ditto?  &tpl=`item_info_ditto`!]



    Template Chunk:

    <li><a href="#null"><img class="fade" src="[+item_thumb+]" alt="[+pagetitle+]" width="62" height="62" />
    <span class="image"><img src="[+item_image+]" alt="[+pagetitle+]" width="438" height="329"></span>
    <span class="text"><h3>[+pagetitle+]</h3><p>[+item_info+]<p></span></a></li>



    Template Variables:

    [*item_image*]
    [*item_thumb*]
    [*item_info*]



      • 26931
      • 2,314 Posts
      cleared the MODx-cache? ... i would also try a name without underscore (just to check)
        • 25132
        • 129 Posts
        Tried both, no luck sad
          • 26931
          • 2,314 Posts
          just tried renaming TVs in a Ditto call with undercores on a Evo 1.0.4 installation and had no problems ...anything else you might have changed? maybe in the call itself ...or are the TVs assigned to the correct template?
            • 25132
            • 129 Posts
            Literally only over-typed parts of the tv names (from prod_img_large to item_image), changed the ditto template name and changed its reference within the ditto call. That’s it .... or so I think! Am starting to go bald tearing my hair out.

            Have actually just deleted everything and started from scratch and still the same problem. Really don’t understand it at all. But I really appreciate that you’re trying to help!
              • 26931
              • 2,314 Posts
              Have actually just deleted everything and started from scratch and still the same problem
              when you created the TVs did you assign them to the template in use (TV section -> Template Access)?
                • 25132
                • 129 Posts
                Yes, I did. On the webpage, it actually lists the pagetitle of the 6 resources that are to be called by the ditto call, so it understands that bit. The tvs come up on the individual resource pages and I have entered all the tv info (i.e. browsed to the images folder for two of them and entered item info for the third tv), but it just doesn’t seem to recognise them ....
                  • 25132
                  • 129 Posts
                  Got it sorted in the end by back-tracking and renaming all of the tv’s, the ditto call and relevant chunks to exactly what they were before the name change and now it’s working. Am still stumped as to what that was all about but there you go. Am happy we’re back to normal at least, even if now a few elements don’t match the overall naming conventions...

                  Thanks again for your help!