Real Estate Forums
| REW IDX REW Customers only - ask questions, get support and report feed issues here. |
![]() |
|
|
Thread Tools | Display Modes |
|
|||
|
Hello - I am trying to create an Area snippet for our site:
http://dev149.rewtemplates.com/ It needs to pull all listings in Area 11-Brices Creek Area of New Bern. Here's my code below. Can you please advise? I'll also need to do this for other areas of New Bern but if you can help with this one first - that would be great. thanks - Florence <?php /* Snippet Settings */ $_REQUEST['snippet_title'] = 'Search Results'; //$_REQUEST['snippet_price_table'] = true; /* Search City */ $_REQUEST['search_city'][] = 'New Bern'; /* Area */ $_REQUEST['search_area'][] = '11'; /* 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; /* 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'; ?> |
|
|||
|
The data doesn't seem to have the numbers in the Area Field.
So use the names like this: $_REQUEST['search_area'][] = 'BRICES CREEK AREA'; I've updated the snippet on this page: http://dev149.rewtemplates.com/bricescreek.php ( You can also just put "BRICES CREEK" as the area name and it will do a wildcard search for BRICES CREEK. ) Thank you, |
|
|||
|
Hi Aaron - Thanks so much for helping me with the Brices Creek Area snippet. It works now. Yeah!
Another quick question....in our MLS, "Waterfront" is something you can search for under "Coded Features". When creating a snippet I tried first putting it as an "Area" thinking that since you said the system can do a wild card search that it might come up. I also tried it under "Property Type" because I was thinking since you can search on "boat slip" perhaps you could also search on "Waterfront". Neither way worked. How can I search for things like Waterfront Properties or Golf Course Lot/Properties etc... Here's my code for Waterfront where I tried it as an area. Please advise. <?php /* Snippet Settings */ $_REQUEST['snippet_title'] = 'Search Results'; $_REQUEST['snippet_price_table'] = true; /* Search City */ $_REQUEST['search_city'][] = 'New Bern'; /* Search Area */ $_REQUEST['search_area'][] = 'Waterfront'; /* Search Subdivision */ //$_REQUEST['search_subdivision'][] = 'subdivision'; /* Search Zip Code */ //$_REQUEST['search_zip'][] = ''; /* Search by MLS Number */ //$_REQUEST['search_mls'][] = ''; /* 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'] = ''; /* 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,
You'll likely need a small work order for us to add the code to allow you to search in the coded features ... shouldn't take more than 15-30 mins programming time to add that in and create an example for you. Thank you, |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Creating A Snippet For A Search Field I Don't Have | Mark Z | REW IDX | 3 | 03-08-2009 06:54 PM |
| Creating snippet to pull MLS # | TheRealOBX | REW IDX | 1 | 12-20-2008 11:06 PM |