Question

4 posts by 3 authors in: Forums > CMS Builder
Last Post: July 31, 2009   (RSS)

By blind2uriz - July 30, 2009

I am working on a Realty site. I have 2 pages, one with current listings and one with sold listings. In CMSB I have a list drop box that lets you choose if it's avaliable, pending sale, or sold. I want to be able to have a listing move to the sold section when it is marked sold. Is there a way to do this? Thanks for your help.
John C. Morris
Interdimensional Designs
www.covdesigns.com

Re: [blind2uriz] Question

By Kenny - July 31, 2009

blind2uriz,

In the pre-head code add this:

'where' => 'field_name >= sold',

Make sure you use your fields

Kenny

Re: [blind2uriz] Question

By Dave - July 31, 2009

Some more details on that. Say your field is called 'status' and your sold value is 'sold'.

On your "current listings" page add:
'where' => " status != 'sold' ",

And on your "sold listings" page add:
'where' => " status = 'sold' ",

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com