Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Instant Website: Realty/Listings/Auto:
Featured property

 

 


samanthab
New User

Nov 7, 2009, 9:27 PM

Post #1 of 6 (4595 views)
Shortcut
Featured property Can't Post

can someone please give me the code to show a featured property. have looked everywhere, i would have thought this could be found in the documentation?


Donna
Staff / Moderator


Nov 11, 2009, 11:15 AM

Post #2 of 6 (4537 views)
Shortcut
Re: [samanthab] Featured property [In reply to] Can't Post

Hi Samantha!

How do you want the featured property to be displayed? There are lots of different ways to set that up, depending on how you want it to work.

The easiest method is to create a checkbox for featured properties, then to change the sort order based on that field -- this way, featured properties would always show up first in the list. Or, if you're looking for something different, let me know and we can go over how to set that up. :)

Donna

--
support@interactivetools.com


samanthab
New User

Nov 14, 2009, 10:05 PM

Post #3 of 6 (4472 views)
Shortcut
Re: [Donna] Featured property [In reply to] Can't Post

hi donna

i want one featured property to appear on the home page, not a list just one house with image price no of beds and bath

hope that makes sense?


kkegans
User

Nov 15, 2009, 8:31 AM

Post #4 of 6 (4463 views)
Shortcut
Re: [samanthab] Featured property [In reply to] Can't Post

Is this property to be randomly selected form the listings available, or do you want to be able to choose which property (s) will be considered as 'featured"?
CMSB Rocks!

Thanks,

Kurt


samanthab
New User

Nov 15, 2009, 11:21 AM

Post #5 of 6 (4457 views)
Shortcut
Re: [kkegans] Featured property [In reply to] Can't Post

it will use the 'featured' option in the property details


Damon
Staff / Moderator


Nov 17, 2009, 2:09 PM

Post #6 of 6 (4405 views)
Shortcut
Re: [samanthab] Featured property [In reply to] Can't Post

Hi,

To have a property featured on the homepage of your site, here is the steps:

1. Add this code in the top of your homepage:

Code
<?php 
require_once "your/path/to/cmsAdmin/lib/viewer_functions.php";
list($listingsRecords, $listingsMetaData) = getRecords(array(
'tableName' => 'listings',
'limit' => '1',
));

?>


Change the require path to match your site. The above code will output one listing.

Add the property listing code as usual to display the listing details.

2. Make sure the Featured listings checkbox is check for at least one listing.

3. In Admin > Section Editors > Listings - Sorting tab, make sure that Featured is the first sort option. You can have other sort options after it.
Example: featured DESC, updatedDate

That's it. Hopefully this makes sense. Let me know if you need more details or have questions.

--------------------------------------------------- 
Cheers
Damon Edis
interactivetools.com

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