Getting Started Components Listing Component Agent Component Search Component Search Component - Custom Search Bar Simple Search Component List Component - Rentals List Component - Agent List Component - Company List Component - Zip Codes List Component - Sold

Search Component

To display the listings search form and customize the search bar, use the search component snippet and specify the options you wish to remove and defaults that should apply to the first search.

In the example below we completely hide the Sale/Rent filter, and we disable the Land option inside property type. Then, we set House as the default value for property type

		
			<mystateidx-component component="search" unused_filters="sale_rent,property_type:land" default_filters="property_type:house" ></mystateidx-component>	
		
	
Available filters are:
Attribute Description Values Example
unused_filters Comma separated list of unused filters. To keep the filter but remove some of the options, they have to be specified in the filter-name:subitem1|subitem2|... format sale_rent,property_type unused_filters="sale_rent,property_type:house|land"
default_filters Comma separated list of filter-name:default-value property_type options: house,condo,multi_unit,land,commercial,mobile
sale_rent options: sale, rent
default_filters="property_type:house"

The result is the following: