|
Each search service on a Joomla site requires one (or more) Seach profile. A unique profile is needed for each search with characteristics,such as basic or advanced search.
1) Login as adminstrator to your Joomla administator interface.
2) Once inside the Administrator interface, chose the menu items: Components >ESearch > Configure
3) You will be presented with a list of ESearch component templates. Initially there will be one named 'sample', and when you click the tool bar New option, Sample will be copied to create a new profile.
4) You will presented with a form with number of fields. The fields of primary interest are:
ItemID: An identifier that allows you to map access to this component to a menu button on project Joomla site. You need to create a new menu item pointing to the Esearch compoment, and then enter that Itemid into the profile you wish to use for that menu item. Title: Name of ESearch component template.
Url: Search Service URL. This URL what where back-end query requests will be made to get a list of search results. The full URL passed to the search service consists of the URL - the URL prefix (if non-blank) and phrases for each variable that needs to be passed. Each phrase passed consists of a started URL format of keyword=value, where the keywords are Query phrase - keyword that defines search term Count phrase - keyword that defines the page size of results to fetch Paging phrase - keyword that defines the page number of results to fetch
Query Template: This template specifies the query form HTML that will be embedded anywhere in the Joomla site where this component is displayed. Contents of this form will be submitted the the search service URL described above. When the mod_esearch module is used, this same template will be displayed. Results Template: This template species the HTML used to display query results returned from queries to the search service URL.
5) Edit the contents of the Query or Results Template per the project requirements. It is a good practice to NOT use inline style-sheet code since it mixes the presentation markup with graphical styling markup. The template code will be easier to read and edit if inline css is not used at this stage. If you wish to style the HTML, mark the HTML tag using id or class parameters to stylize it later in the Joomla Site Template Stylesheets.
6) You should then save your changes using the toolbar Save button. |