1.1.2.3. Search

The Search portlet allows users to do a search with any string. In Content, there are three types of search: quick search, advanced search, and search with saved queries.

The users can find this portlet in the front page. This is an example of the Search portlet used in Content:

Preference Type Value Description
repository string repository The place where data are stored and maintained.
workspace string collaboration The workspace where the content is stored.
searchFormTemplatePath string /exo:ecm/views/templates/search/search-form/Form.gtmpl The path to the search form template.
searchResultTemplatePath string /exo:ecm/views/templates/search/search-result/Results.gtmpl The path to the search result template.
searchPaginatorTemplatePath string /exo:ecm/views/templates/search/search-paginator/Paginator.gtmpl The path to the search paginator template.
searchPageLayoutTemplatePath string /exo:ecm/views/templates/search/search-page-layout/PageLayout.gtmpl The path to the search page template.
itemsPerPage Integer 5The number of items for each page.
showQuickEditButton boolean true Shows or hides the quick edit icon.
pageMode String more The way to list search results.
basePath string detail The page which is used to display the search result.
detailParameterName String content-id Defines which parameter will be used to get the content's path.

<portlet-preferences>
    <preference>
        <name>workspace</name>
        <value>collaboration</value>
        <read-only>false</read-only>
    </preference>
    <preference>
        <name>searchFormTemplatePath</name>
        <value>/exo:ecm/views/templates/search/search-form/Form.gtmpl</value>
        <read-only>false</read-only>
    </preference>
    <preference>
        <name>searchResultTemplatePath</name>
        <value>/exo:ecm/views/templates/search/search-result/Results.gtmpl</value>
        <read-only>false</read-only>
    </preference>
    <preference>
        <name>searchPaginatorTemplatePath</name>
        <value>/exo:ecm/views/templates/search/search-paginator/Paginator.gtmpl</value>
        <read-only>false</read-only>
    </preference>
    <preference>
        <name>searchPageLayoutTemplatePath</name>
        <value>/exo:ecm/views/templates/search/search-page-layout/PageLayout.gtmpl</value>
        <read-only>false</read-only>
    </preference>
    <preference>
        <name>itemsPerPage</name>
        <value>5</value>
        <read-only>false</read-only>
    </preference>
    <preference>
        <name>showQuickEditButton</name>
        <value>true</value>
        <read-only>false</read-only>
    </preference>
    <preference>
        <name>pageMode</name>
        <value>more</value> <!-- supported modes : pagination, more, none -->
        <read-only>false</read-only>
    </preference>
    <preference>
        <name>basePath</name>
        <value>detail</value>
        <read-only>false</read-only>
    </preference>
    <preference>
        <name>detailParameterName</name>
        <value>content-id</value>
        <read-only>false</read-only>
    </preference>
</portlet-preferences>
Copyright ©. All rights reserved. eXo Platform SAS
blog comments powered byDisqus