any help for a little script :)

6 posts by 2 authors in: Forums > CMS Builder
Last Post: August 10, 2010   (RSS)

Re: [jimmy.g] any help for a little script :)

By Jason - August 9, 2010

Hi,

I'm not sure if I understand. You want agents to be able to choose if a property displays in the slideshow or not? What field are you using to make this decision?

If you could clarify the problem some more I can take a look.

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] any help for a little script :)

By jimmy.g - August 9, 2010

Hi,

yes that what I am asking for.
And the field is featured
<?php if ($listing['featured'] == 'oui'):?>

so i just want an "else" instruction or whatever that work to don't show anything when agents choose "non" instead of "oui" in featured.

thanks for your help

Re: [jimmy.g] any help for a little script :)

By Jason - August 9, 2010

Hi,

You don't need an else statement. From what I can tell from the code you posted, the only listings that will be displayed are the ones that have the featured field selected. Otherwise nothing will happen.

Do you have non featured listings showing up in the slideshow? I think the blank slides you're seeing are because there are no images associated with those records.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] any help for a little script :)

By jimmy.g - August 9, 2010

I fix the problem that was the
'orderBy' => 'createdDate DESC',

I changed it for
'orderBy' => 'featured2 DESC, createdDate DESC',


and it's fixed :D

thanks for your help ^^

Re: [jimmy.g] any help for a little script :)

By Jason - August 10, 2010

Great! I'm glad everything is working for you.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/