Can list results usng 'orderBy' => 'RAND()', be altered by having High Priority records?

3 posts by 2 authors in: Forums > CMS Builder
Last Post: September 16, 2016   (RSS)

By Dave - September 16, 2016

Hi Kurt, 

What about something like this in the viewer getRecords code?

'orderBy' => "num = 57 DESC, RAND() ", // sort record 57 first, then random

Or if you have a checkbox for "featured" to show them first: 

'orderBy' => "featured DESC, RAND() ", // sort featured first, then random

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com

By kkegans - September 16, 2016

Thanks Dave...

CMSB Rocks!



Thanks,



Kurt