Skip to main content

Implementation

Search Implementation

Create a Search Page in the Admin mode of the website and select a template that is equipped for displaying a search facility and search results. 

    There is a COMMON page layout template that can accommodate all the different types of search.

    Search_Results_Products_Index [ewcommon_vx/xsl/EwCommonVx_x.xsl]

    However, the site you may be working on most probably will not require all of the features on this template so you may wish to over ride this template by copying it into your site specific XSL’s and removing all the parts that do not associate with the search you want to implement.

    The above template is split into 3 sections

    • Search Form
    • Search Header
    • Search Results
    • Search Form – This template contains the form that gets submitted when a user submits a search.  You may wish to re-use this form not only for the search page layout but also as a search form that appears as part of the main template on every page.
    • As shown in the above code some elements are not required for all searches.  The black code is common for all searches where as the coloured code corresponds with a type of search.  You may remove the elements that are not associated with the search you are implementing.