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

    I try to sort my Ditto articles by a TV (datum). I’ve heard this only works with UNIXTIME widget.

    But Ditto not really shows a date! Instead of a date like 06.10.2007 Ditto shows up this number: 1191699117 (Unixtime).

    My Ditto call is:
    [!Ditto? &startID=`51` &display=`15` &total=`20` &tpl=`TerminTemplate` &showInMenuOnly=`0` &paginate=`1` dateFormat=`%d. %b. %y` &sortBy =`datum` &dateSource=`datum` &sortDir=`ASC`!]

    Whats wrong?

    Thank you, and please excuse my bad english!!

    Bye!

    Richie
      • 4639
      • 36 Posts
      Hi, I don’t know if thats the only problem but you have a syntax error in your ditto call:

      My Ditto call is:
      [!Ditto? &startID=`51` &display=`15` &total=`20` &tpl=`TerminTemplate` &showInMenuOnly=`0` &paginate=`1` dateFormat=`%d. %b. %y` &sortBy =`datum` &dateSource=`datum` &sortDir=`ASC`!]

      The dateFormat parameter should be &dateFormat=`%d. %b. %y` just add the ampersand.
      If that doesn’t solves the problem try making the ditto call more simple (i.e. remove parameters)