List of available parameters for common.widget.search-form component?
Hi,
Anybody know if there is documentation or a list of the parameters available for passing to the default common.widget.search-form component?
I was only able to locate these:
hideGranularity
showAdvancedSearchLink
searchType
My goal is to limit the scope of the standard search component to a specific category or coreNode. I've added the common.widget.search-form to custom pages and don't want those searches to happen at the community level. Fingers crossed that there is some parameter to specify the highest node the search should check. I'm hoping I don't have to manually pull in and format the search results using the REST search APIs.
I saw a post about the "searchType" parameter but it doesn't appear to have many possible values: https://community.lithium.com/t5/Support-board/Standard-components-parameters/m-p/97136/highlight/true#M4768
I'm trying to customize the search to only show results for a specific blog.
Thanks!
Hi,
the standard search widget usually searches results based on the node it's being rendered in. So - if it's rendered on the community page, it will search at community level. If it's rendered on a category page , it will search within that category and on a blog page within that blog etc ...
One configuration element that can be used is
defaultToCommunity=true
To default the search on all the community. I don't think at the moment there is configuration available to force a search within a particular board - this would have to be a customization possibly. For example, look at the URL parameters available in the search result page http://community.lithium.com/t5/forums/searchpage/tab/message?location=board%3Alithiumblog&q=search&search_type=thread&filter=labels%2Clocation (this is a search for a term on the Lithium's views blog) - you may be able to construct a widget based on that.
Alternatively - you can get in touch with Lithium Professional Services to help you in scoping and delivering this.
Thanks,