Reputation: 125
I am working on AEM search component. I overlaid this component and added that in the header part of my page. But I need to get the search results in the main content of the page. How do I do that? Thanks in advance!
Upvotes: 0
Views: 2133
Reputation: 1712
You could refer to the way the search component has been setup with Geometrixx-Outdoor Site
/content/geometrixx-outdoors/en/toolbar/search
, here the search component is dropped and configured. This component is responsible for displaying the search results as well as accepting new search terms. This component script can be found at /libs/foundation/components/search/search.jsp
/etc/designs/geometrixx-outdoors/jcr:content/page/search
, this is where the design configuration for the search configured in header is storedSo effectively there are two components -
/apps/geometrixx-outdoors/components/page/search
placed in header/libs/foundation/components/search
placed on search result pageUpvotes: 1