Real Estate Forums

REW IDX REW Customers only - ask questions, get support and report feed issues here.

Reply
 
Thread Tools Search this Thread Display Modes
Old 06-14-2008, 08:00 PM
GreggRio's Avatar
GreggRio GreggRio is offline
REW Client
 
Join Date: Apr 2007
Location: Santa Cruz,CA
Posts: 1,184
GreggRio is on a distinguished road
Default subdivision snippet help

I am not sure which will be the one to use for a subdivision search.. Before I screw things up,could you let me know. I want to be able to search an (area 45) area called Pleasure Point. It is an area that some may have as a subdivision. Not sure what the full snippet should be.Thanks



//$_REQUEST['search_sub'] = "Pleasure Point";

$_REQUEST['search_subdivision'][] = 'sub 1';
__________________
Santa Cruz Beach Homes|Capitola Real Estate| Aptos Beach Homes Santa Cruz is a vibrant community, located on the north end of Monterey Bay, and is home to artisans, beach goers, hi tech types, and college students. There is plenty of natural beauty from the ocean side coastal towns to the little mountain communities. Let my 30 years of local knowledge and 20 years of real estate help you find the right home or property in Santa Cruz.

Last edited by GreggRio; 06-14-2008 at 08:15 PM.
Reply With Quote
Old 06-16-2008, 11:54 AM
REW Vera REW Vera is offline
Real Estate Webmasters Staff
 
Join Date: May 2008
Posts: 377
REW Vera is on a distinguished road
Default Re: subdivision snippet help

Gregg,

You could use
$_REQUEST['snippet_subdivision'] = "Pleasure Point"; if you want a "like" search (in other words, you don't have the exact name), or

$_REQUEST['search_subdivision'] = "Pleasure Point"; if you're looking for an exact match.

However, I took a look at the database and didn't find any listings that had Pleasure Point in the subdivision field, so it may be a moot point for that particular area. May work for others, however.

Vera
Reply With Quote
Old 06-16-2008, 12:33 PM
GreggRio's Avatar
GreggRio GreggRio is offline
REW Client
 
Join Date: Apr 2007
Location: Santa Cruz,CA
Posts: 1,184
GreggRio is on a distinguished road
Default Re: subdivision snippet help

Quote:
Originally Posted by REW Vera View Post
Gregg,

You could use
$_REQUEST['snippet_subdivision'] = "Pleasure Point"; if you want a "like" search (in other words, you don't have the exact name), or

$_REQUEST['search_subdivision'] = "Pleasure Point"; if you're looking for an exact match.

However, I took a look at the database and didn't find any listings that had Pleasure Point in the subdivision field, so it may be a moot point for that particular area. May work for others, however.

Vera

Would one still have the city search and area search in that? We do have others that people recognize( agents that is) who put them in.Pasatiempo is probably one.
__________________
Santa Cruz Beach Homes|Capitola Real Estate| Aptos Beach Homes Santa Cruz is a vibrant community, located on the north end of Monterey Bay, and is home to artisans, beach goers, hi tech types, and college students. There is plenty of natural beauty from the ocean side coastal towns to the little mountain communities. Let my 30 years of local knowledge and 20 years of real estate help you find the right home or property in Santa Cruz.
Reply With Quote
Old 06-16-2008, 01:02 PM
REW Vera REW Vera is offline
Real Estate Webmasters Staff
 
Join Date: May 2008
Posts: 377
REW Vera is on a distinguished road
Default Re: subdivision snippet help

Just keep in mind that these are "AND" searches. That is, if you put in a $_REQUEST['city'] and a $_REQUEST['search_subdivision'] they would have to both be true in order for the listing to be found. OR searches are not available, unless they are custom programmed in.

Vera
Reply With Quote
Old 06-16-2008, 02:31 PM
GreggRio's Avatar
GreggRio GreggRio is offline
REW Client
 
Join Date: Apr 2007
Location: Santa Cruz,CA
Posts: 1,184
GreggRio is on a distinguished road
Default Re: subdivision snippet help

So would I do something like this
<?php
$_REQUEST['snippet_subdivision'] = "Pleasure Point";

Woud this get me the Pleasure Point or things that say one or the other for class 1 and 2 with the page sort?

So for others what is the difference ( meaning) or the search sub and the ['search_subdivision'][] = 'Pleasure Point';- with the brackets and the full written out portion of subdivision versus search_sub Thanks, want something to work and want to understand what gets me what.


<?php
$_REQUEST['snippet_subdivision'] = "Pleasure Point";
$_REQUEST['page_limit'] = "5";
$_REQUEST['sort'] = "ASC"; // Lowest to highest
$_REQUEST['prop_type'][] = '1';
$_REQUEST['prop_type'][] = '2';
include 'idx/common.inc.php';
include 'idx/inc/php/pages/snippet.php';

?>
__________________
Santa Cruz Beach Homes|Capitola Real Estate| Aptos Beach Homes Santa Cruz is a vibrant community, located on the north end of Monterey Bay, and is home to artisans, beach goers, hi tech types, and college students. There is plenty of natural beauty from the ocean side coastal towns to the little mountain communities. Let my 30 years of local knowledge and 20 years of real estate help you find the right home or property in Santa Cruz.
Reply With Quote
Old 06-16-2008, 02:47 PM
REW Vera REW Vera is offline
Real Estate Webmasters Staff
 
Join Date: May 2008
Posts: 377
REW Vera is on a distinguished road
Default Re: subdivision snippet help

Gregg,

That should work as long as the listings have "Pleasure Point" in their subdivision field. If not, they won't be selected.

The reason to use 'search_subdivision' is that it's what is defined as a field in the code. Search_sub is not, so it won't work.

Vera
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
snippet help please GreggRio REW IDX 24 07-07-2008 11:11 AM



For our members

Main Sections

IDX Coverage Areas

Spiders Welcome

All times are GMT -7. The time now is 03:41 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.