We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23183
    • 102 Posts
    I have ditto set up but want to change it so that when any of the pages in the ditto call have the Template variable ’expireddiscount’ selected they go to the bottom of the last page in ditto. So I have added the &orderBy parameter to my Ditto call, but it is not changing anything, my call looks like this:

    [!Ditto? &startID=`4` &id=`discount` &tpl=`discountimages` &display=`5` &paginate=`1` &orderBy=`createdon DESC,[*expireddiscount*] DESC` &paginateAlwaysShowLinks=`0`!] 


    I have also tried it with [+expireddiscount+] but thats not working either.

    Any suggestions?

    Thanks

    Edit:

    Its been a long day, had a coffee and manged to get it sorted smiley Seems changing the order around solved it, also removed [] tags.

    [!Ditto? &startID=`4` &id=`discount` &tpl=`discountimages` &display=`5` &paginate=`1` &orderBy=`expireddiscount ASC,createdon DESC` &paginateAlwaysShowLinks=`0`!]