Zawartość pomocy dla wersji :

The search feature works with various other features, such as forums, to provide the ability to search for content.

When adding the ability to search posts entered by community members, referred to as user generated content (UGC), there are two components : Search and Search Results.

The page that includes the Search Results component supports both searching and the display of results.  

The page that includes the Search component provides a place to launch a search with results appearing on the Search Results page.

The search feature may be used with any other feature which allows site visitors and members to view content.

Add Search to a Page

To add a Search component to a page in author mode,  use the component browser to locate

  • Communities / Search

and drag it into place on a page.  Use of Search requires a second page for the Search Results.

For necessary information, visit Communities Components Basics.

When the required client-side library, cq.social.hbs.search, is included, this is how the Search component will appear.

chlimage_1

Configure the Added Search

Select the placed Search component to access and select the Configure icon which opens the edit dialog.

chlimage_1

Under the Search Settings tab, specify how what paths are are search when a query is entered by a visitor.

 

chlimage_1
  • Search Paths
    By adding search paths using the Add Item button, the content search is limited.  As an example, to limit the search to a specific forum, select a forum component placed within a page :
    • /content/community-components/en/forum/jcr:content/content/forum
  • Result Page
    The results will appear on a separate page specified by using the browser to select a page containing the Search Results component.

Search Results

Add Search Results to a Page

To add a Search Results component to a page in author mode,  use the component browser to locate

  • Communities / Search Results

and drag it into place on a page.  Unlike the Search component, no second page is needed as the results will be displayed on the same page.

If using Search elsewhere within the website, this one page with Search Results may be configured to be the Result Page for any or all instances of Search.

For necessary information, visit Communities Components Basics.

When the required client-side library, cq.social.hbs.search, is included, this is how the Search Result component will appear :

chlimage_1

Configure the Added Search Result

Select the placed Search Results component to access and select the Configure icon which opens the edit dialog.

chlimage_1

Under the Search Result Settings tab, it is possible to specify what paths are included in the search when a query is entered by a visitor.

 

chlimage_1
  • Search Results Per Page
    Define the number of topics/posts shown per page. Default is 10.
  • Search Paths
    By adding search paths using the Add Item button, the content search is limited.

Additional Information

More information may be found on the Search Essentials page for developers.

Ta zawartość jest licencjonowana na warunkach licencji Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Posty z serwisów Twitter™ i Facebook nie są objęte licencją Creative Commons.

Informacje prawne   |   Zasady prywatności online