photo

OR User

shared this question
3 years ago

Employees Involved

photo

PIV Support

Admin

Statistics

2
Comments
175
Views

Relates to

Share

Tags

1
votes

setup a search that shows all communities in a City

I have RETS on OR 3.2.9 and I am trying to setup a search that will show every subdivision for property class of homes within one city.

I only want the subdivision names to appear on one page.

What should my code look like?

Homes property class = 1

Section/Subdivision = LM_Char25_4

City= L_City

/index.php?action=searchresults&pclass[]=1&LM_Char25_4[]=my_town

Add Comment

Comments (2)

photo Employee
1

You don't need "code" you need the proper URL to pass to OR's search engine that contains the relevant $_GET variables that match the values in your OR database.

Does this not work?

/index.php?action=searchresults&pclass[]=1&LM_Char25_4[]=my_town

You do have to replace 'my_town' with a proper section/subdivision value as stored exactly in your database. This is probably not a "town" or "city" but a "Section" or "Subdivision" name. If you need to also limit results to a city, you would need to add &L_City= your "city" info to your URL as a $_GET variable and a valid value for that city.

If not, does the field 'LM_Char25_4' actually contain an array?

photo
1

without the array I get nothing. With the array I get 42 single family homes. I am looking to get the search results for the section/subdivision names, not results for homes.

I have a section/subdivision named "Plantation Pines". "Plantation Pines" is located in Anytown NJ.

/index.php?action=searchresults&pclass[]=1&LM_Char25_4[]=Anytown

I want my search results to display "Plantation Pines" along with other section/subdivisions located in Anytown NJ. My search should not display information on a house but should display "Plantation Pines" and all other subdivision names located inside Anytown NJ.

Leave Comment

photo

Attach files...

The file must be a jpg, gif, png, bmp, ico, pdf, doc, rtf, txt, zip or rar no more than 20M