We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31900
    • 3 Posts
    My ditto call is as follows:
    [!Ditto?startID=`161` &format=`json` &dateSource=`DateStart` &sortBy=`DateStart` &sortDir=`desc` &display=`all`!]


    But the output on the JSON for date is actually the createdon date of the content rather than the custom TV DateStart.

    Shouldn’t the dateSource parameter overrides it with the TV specified ("DateStart")?

    Am i missing something here?
      • 18397
      • 3,250 Posts
        • 3349
        • 126 Posts
        Im having the same issues with dateSource? The previous link that had been posted is dead and so Im not sure if it was some kind of solution?

        Basically I’m calling a Ditto snippet to be ordered by a TV. (NewsDate) I have set the widget to Date Formatter and set my own custom value.

        Trouble is it doesn’t order by this TV?

        Here is my call:

        [[Ditto? &parents=`4` &display=`all` &tpl=`NewsTPL` &sortBy=`NewsDate` &dateSource=`NewsDate` &sortDir=`DESC`]]

        Here is my NewsTPL:

        <div class="listing"><div class="caldate">[+NewsDate+]</div><div class="newsdetails2"><h3><a href="[~[+id+]~]">[+pagetitle+]</a></h3><p>[+introtext+]</p></div><div class="spacer"></div></div>

        Anyone help me?

        bS