simplepagesearch form shown twice

Topics: Standard packages
Sep 15, 2011 at 2:59 PM

Hello everybody!

Today I tried to use the simplepagesearch function for the first time.

First I placed the "search form" and then the "search result" on the same page.
The "SearchResultPage" within "search form" settings points to the same site both functions are located on.

Viewing the page in browser shows the search form (field + button) twice!
After submitting a search the second form dissapears and the results are shown.

Can anybody help? Thanks in advance!


    <h1 class="bf_h1">Suche:</h1>
    <f:function xmlns:f="" name="Composite.Search.SimplePageSearch.SearchForm">
      <f:param name="SearchResultPage" value="6dc16f0d-0337-4e09-9355-2372f22841fd" />
    <f:function xmlns:f="" name="Composite.Search.SimplePageSearch.SearchResults" />

Sep 16, 2011 at 7:24 AM


The function Composite.Search.SimplePageSearch.SearchResults shows search form if no querying were done + Composite.Search.SimplePageSearch.SearchForm shows search form so you have two forms. It is assumed that Composite.Search.SimplePageSearch.SearchForm is inserted somewhere in the page layout template and Composite.Search.SimplePageSearch.SearchResults in the separate page.

If you wish to use SearchResults and SearchForm on the same page, try this workaround: go to Functions-> XSLT functions, locate function Composite.Search.SimplePageSearch.SearchResults -> edit -> Template tab -> comment this code:

 <!-- show search form if no querying were done -->
            <!--f:function  name="Composite.Search.SimplePageSearch.SearchForm" xmlns:f="">
              <f:param name="SearchResultPage" value="{$pageId}" />

Sep 16, 2011 at 8:58 AM


thanks for the hint! It solved my issue :-)