Display Multi Record List if Checkbox is 1

3 posts by 2 authors in: Forums > CMS Builder
Last Post: October 26, 2009   (RSS)

Re: [jonoc73] Display Multi Record List if Checkbox is 1

By Dave - October 26, 2009

Hi Jono,

So let me see if I've got this right. You want to show 2 tours on the homepage, and you want the featured or checked tours first (if there are any) followed by the rest (sorted by date).

The simplest way to do that is to sort by your checkbox field first, and then date. I'll assume your checkbox field is called "featured" and your date field is called "date" but use your actual fieldnames in your code.

Under: Admin > Section Editors > Your Section > Sorting, enter:
featured DESC, date DESC

This means: sort by featured in descending order, and then by date in descending order.

Hope that helps! Let me know if that does what you need.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Display Multi Record List if Checkbox is 1

By (Deleted User) - October 26, 2009

Of course - it's so simple now that you mention the 'sorting' - Doh!

CMS Builder just gets better and better - I love it so much I have just bought another 5 licenses!

Thanks Jono.