Creating a real estate site without an add-on
PermalinkI'm going to create a real estate website, but is there a way to create it without using a "Real Estate" add-on. The only problem as i see is "Search Form". So if you can tell me some hints to do it, i'll be appreciated..
Thanks

Here is an example that would allow the users to filter the search by Bedrooms (assuming 'cm_community_bedrooms' is your attribute handle and your attribute is a select attribute).
<?php $ak_beds = CollectionAttributeKey::getByHandle('cm_community_bedrooms'); $cont = $ak_beds->getController(); $bedsOptions = $cont->getOptions(); ?> <select id="beds_select" class="beds_search" name="akID[<?php print $ak_beds->getAttributeKeyID(); ?>][atSelectOptionID][]" > <option value=""># of Bedrooms</option> <?php if(isset($_REQUEST['akID'][$ak_beds->getAttributeKeyID()])){ $bedsSelected = $_REQUEST['akID'][$ak_beds->getAttributeKeyID()]['atSelectOptionID']; } else { $bedsSelected = array(); } foreach($bedsOptions as $option){ if(in_array($option->ID, $bedsSelected)){
Each attribute type is a little different for this type of custom search.
Otherwise if you just want a keyword search that searches all of your Page Attributes just check the box for "Content included in sitewide page search index." and the regular search block will pick those up.
I tried your solutions but i get this error when i add custom template to search block:
"Call to undefined method TextAttributeTypeController::getOptions()"
Can there be a mistake that i could make?