
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:
<?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/
|