This plugin replaces the ajax_search_asamodule plugin.
The older plugin used a bastardised form of the ajax_search plugin's functionality, so there was a fair amount of code duplication, making it more complicated to maintain and install. This plugin is fully integrated into ajax_search.
The goal of this plugin is give you the ability to have an ajax driven search module in a sidebar. It (at the time of writing) offers you the ability to search based on the number of Stars, a price range, by property features (by default this is collapsed), and by country/region/town.
Using the Joomla module manager, create a new module based on Jomres ASAModule. Set the task to 'ajax_search' and the arguments to '&ajs_plugin=ajax_search_composite'. Position it in the module position you'd like to see it on (we recommend a sidebar) and ensure that it is published.
You can modify which of these options are shown, once it's installed, by going to the administrator area - Jomres - Portal Functionality section and clicking on Ajax Search Composite settings. When you click on that you'll see something like the following :
Set options that you don't want to see to "No" to hide them.
You can 'pre filter' property uids and property types, so instead of searching all properties, you can tell the system to only return properties that fall into a group that you have already selected.
To do that, you would add more arguments to the arguments field like so : '&ajs_plugin=ajax_search_composite&property_uids=1,3&ptypes=5'
To determine a property type's id, you can visit the property/business types page. Hover over the property type you're interested in and in your browser you should see the link in full. It'll look something like "http://www.domain.com/administrator/index.php?option=com_jomres&task=editPropertyType&id=1". The ID of the property type in this example would be 1 (one).
By default all options are enabled, you can disable them through the new button under 'Portal Functionality' titled 'Ajax search composite settings', or through the arguments list.
To disable an option through the arguments list you can set the arguments like so : '&ajs_plugin=ajax_search_composite&by_stars=0' however be aware that if you have set an option via 'Ajax search composite settings' to No then setting 'by_stars' in the arguments list will have no effect.
The full list of options are by_stars, by_price, by_features, by_country, by_region, by_town, by_roomtype, by_propertytype and by_guestnumber, by_date
This document is copyright Vince Wooll/Woollyinwales IT, 2011. All rights reserved.