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

    I have been reading some post but I still don’t manage to use ditto to sort a list of events and then i decided to open this new post.

    Situation:

    I have a list of events that i would like to sort in ascending chronological order.

    I created a tv called "sort_live_date" ( this tv is a date).

    And i have the following ditto call:

    [[Ditto? &id=`live` &parents=`3` &start=`0` &tpl=`tpl_live_supercurt` &display=`15` &noResults=`No hay documentos para mostrar ...` &paginate=`1` &paginateAlwaysShowLinks=`1`
    &sortBy=`tvsort_live_date` &sortDir=`ASC` &dateFormat=`%d-%m-%Y %T`]]

    The result is a list of events but not in the order that they should be.

    I would really appreciate any help.

    Thanks.


      • 11975
      • 2,542 Posts
      Hi,

      which version of Ditto are you using ?

      If it’s >= 2.0 the tv don’t have any more to be prefixed.

      &sortBy=`sort_live_date`

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l