We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16892
    • 107 Posts
    I am building a table of contents for an online magazine and am using the following Ditto calls and templates. I have three TVs, one of which I’m using for tagging as per the instructions in the wiki.

    First call:

    [!Ditto? &startID=`99` &tpl=`tpl_NEEJBlogIndex` &summarize=`all` 
    &hideFolders=`0` &mode=`production` &format=`html` &dateFormat=`%m/%d/%Y` 
    &displayArchive=`0` &showInMenuOnly=`1` &sortBy=`menuindex` 
    &descendentDepth=`1` &sortDir=`ASC`!]


    tpl_NEEJBlogIndex:

    <h3>
    
    <a href="[~[+id+]~]" title="[+title+]">[+title+]</a><br />
    
    [!Ditto? &startID=`[+id+]` &tpl=`tpl_NEEJBlogSubMenuIndex` &summarize=`1` 
    &hideFolders=`0` &mode=`production` &format=`html` &dateFormat=`%m/%d/%Y` 
    &displayArchive=`0` &showInMenuOnly=`1` &sortBy=`createdon` &sortDir=`DESC` 
    &descendentDepth=`1`!]
    
    </h3>


    tpl_NEEJBlogSubMenuIndex:

    
    <li>
    <span class="normal"><a href="[~[+id+]~]" title="View [+title+]"><strong>[+title+]</strong></a><br />
    <strong>[+longtitle+] [+tvneej_caseInfo+]</strong><br />
    [+summary+]<br />
    [+tvneej_categories+]<br />
    <span class="small">[+date+]</span></span>
    </li>
    
    


    This tpl will not display the TVs I’ve indicated. I’ve tried [+tvTVNAME+], [*tvTVNAME*], [+tvTVNAMEtv+], etc. and it doesn’t show. Is this a result of a call being nested in a tpl? How do I get the TVs to show?

    Thanks.
      • 11975
      • 2,542 Posts
      Hi try to call the nested snippet cached

      <h3>
      
      <a href="[~[+id+]~]" title="[+title+]">[+title+]</a><br />
      
      [[Ditto? &startID=`[+id+]` &tpl=`tpl_NEEJBlogSubMenuIndex` &summarize=`1` 
      &hideFolders=`0` &mode=`production` &format=`html` &dateFormat=`%m/%d/%Y` 
      &displayArchive=`0` &showInMenuOnly=`1` &sortBy=`createdon` &sortDir=`DESC` 
      &descendentDepth=`1`]]
      
      </h3>
      
      


      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
        • 16892
        • 107 Posts
        No, that didn’t work.
          • 18397
          • 3,250 Posts
          &mode="production" disables the auto tv detection in the Ditto 1.x series. Try running the calls without it. If that does not help, give Ditto 2 RC2 a try as its TV detection is far superior to its predecessor.
            • 16892
            • 107 Posts
            That did it! Thanks!