Real Estate Forums
| REW IDX REW Customers only - ask questions, get support and report feed issues here. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
Hi there - Just trying to create a new construction snippet so I can have a page that pulls only new construction. Can you check out my code below? Note...I do not want to use minimum/maximum year because I don't want to have to edit each year.
Please advise. - Florence <?php /* Snippet Settings */ $_REQUEST['snippet_title'] = 'Search Results'; $_REQUEST['snippet_price_table'] = true; /* Search City */ $_REQUEST['search_city'][] = 'New Bern'; //$_REQUEST['search_city'][] = 'Oriental'; /* Search Area */ //$_REQUEST['search_area'][] = 'area'; /* Search Subdivision */ //$_REQUEST['search_subdivision'][] = 'subdivision'; /* Search Zip Code */ //$_REQUEST['search_zip'][] = ''; /* Search by MLS Number */ //$_REQUEST['search_mls'][] = ''; /* Search by Type */ //$_REQUEST['search_type'][] = 'type'; /* Search by New Construction */ $_REQUEST['search_new_construction'] = 'Y'; Or $_REQUEST['search_new_construction'] = 'N'; /* Property Type */ $_REQUEST['idx'] = 'residential'; // Residential //$_REQUEST['idx'] = 'land-and-lots'; // Land & Lots //$_REQUEST['idx'] = 'commercial-sales'; // Commercial Sales //$_REQUEST['idx'] = 'commercial-lease'; // Commercial Lease //$_REQUEST['idx'] = 'boat-slips'; // Boat Slips //$_REQUEST['idx'] = 'rentals'; // Rentals /* Price Range */ $_REQUEST['minimum_price'] = 0; $_REQUEST['maximum_price'] = 5000000; /* Bedrooms */ //$_REQUEST['minimum_bedrooms'] = 0; //$_REQUEST['maximum_bedrooms'] = 0; /* Bathrooms */ //$_REQUEST['minimum_bathrooms'] = 0; //$_REQUEST['maximum_bathrooms'] = 0; /* Square Feet */ //$_REQUEST['minimum_sqft'] = 0; //$_REQUEST['maximum_sqft'] = 0; /* Year Built */ //$_REQUEST['minimum_year'] = 0; //$_REQUEST['maximum_year'] = 0; /* Acres */ //$_REQUEST['minimum_acres'] = 0; //$_REQUEST['maximum_acres'] = 0; /* Search Remarks */ //$_REQUEST['search_remarks'] = 'remarks'; /* Only this agent's listings */ $_REQUEST['agent_id'] = ''; /* Only this office's listings */ $_REQUEST['office_id'] = ''; /* Page Limit */ $_REQUEST['page_limit'] = 12; /** DO NOT EDIT BELOW THIS LINE **/ $_REQUEST['snippet'] = true; include $_SERVER['DOCUMENT_ROOT'] . '/idx/common.inc.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/idx/inc/php/pages/search.php'; ?> |
|
|||
|
Hello,
I do not see a field that indicates "New Construction" in the NRRAR data feed. So it seems this will not be possible. The year built field will be your best bet. Could even do something like. $_REQUEST['minimum_year'] = date("Y"); So date("Y"); will always be the current year. Might work for you - except in the beginning of the year. ![]() Last edited by Aaron; 10-01-2009 at 02:49 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Properties Snippet on home page | MarcinSarasota | REW CMS 2 Questions | 2 | 09-21-2009 02:00 PM |
| #rss-reader# and top nav modification via snippet on LEC2 | bnicolas | REW LEC | 6 | 04-20-2009 11:02 PM |
| footer navigation snippet | Adam Robinson Sarasota | Work Orders | 7 | 01-07-2009 10:55 AM |