We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8168
    • 1,118 Posts
    Hi guys,

    Having a few problems getting my TVs to render in my Ditto call... see below for my code that is not currently rendering the contents of my TVs:

    Ditto Call -
    [[Ditto? &parents=`6` &depth=`1` &tpl=`HomepageHEROFeedDittoTpl` &randomize=`1` &display=`10` &includeTVs=`1` &processTVs=`1` &tvPrefix=``]]


    Ditto Template -
    <!-- HERO item -->
    <div class="homepageHeroItemWrapper">
    <div class="heroDetailLHS"><h2>[[+homepageHEROtitle]]</h2>
    <p>[[+homepageHEROdescriptor]]</p>
    <p>[[+pagetitle]]</p>
    </div>
    <div class="heroDetailRHS">
    <img src="[[+homepageHEROimage]]" width="618" height="372" alt="[[+homepageHEROtitle]]" title="[[+homepageHEROtitle]]" />
    </div>
    </div>


    The call is working fine, for example if I add in a hardcoded line of copy this renders (e.g.
    <p>[[+pagetitle]]</p>
    , but when trying to render the contents of my TVs ("homepageHEROtitle", "homepageHEROdescriptor" and "homepageHEROimage") it does not render anything????


    Any ideas??

    Cheers,


    dubbs.
      • 8168
      • 1,118 Posts
      I have solved this by dropping Ditto in favour of getResource! (http://rtfm.modx.com/display/ADDON/getResources) Seems Ditto is not well supported in Revo all who run into this issue!
        • 28215
        • 4,149 Posts
        Ditto’s author has not been seen for a few years; therefore Ditto’s development has been discontinued. The MODx Team recommends using getResources instead of Ditto, as getResources is actively developed and maintained, and has most all of the features Ditto had.
          shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com