Specify landing pages for search terms in WCS FEP2+
From FEP2+ IBM provides a feature in management center where the user can specify specific landing pages for certain keywords entered. For example,
search term landing page
help HelpContactUsView
My requirement was to technically display the same view (ContentDisplayView) but with different parameters based on different search terms like for search term "Terms and Conditions" it should be ContentDisplayView?emsName=xxx where as for "privacy policy" it should be
ContentDisplayView?emsName=yyy
I tried to configure a relative path by passing in the parameters but it doesn't work. And then I figured out that the landing page can be an absolute URL with url query parameters like shown below
search term landing page
help HelpContactUsView
My requirement was to technically display the same view (ContentDisplayView) but with different parameters based on different search terms like for search term "Terms and Conditions" it should be ContentDisplayView?emsName=xxx where as for "privacy policy" it should be
ContentDisplayView?emsName=yyy
I tried to configure a relative path by passing in the parameters but it doesn't work. And then I figured out that the landing page can be an absolute URL with url query parameters like shown below
For example, instead of ContentDisplayView as the landing page, you can have http://hostname/webapp/wcs/stores/servlet/ContentDisplayView?storeId=nnn&catalogId=xxx&emsName=zzz
This solves my requirement of associating the same landing page with different search terms and different URL parameters.
reference
http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.commerce.developer.doc%2Fconcepts%2Fcsdsearchindexschema.htm
http://pic.dhe.ibm.com/infocenter/wchelp/v7r0m0/index.jsp?topic=%2Fcom.ibm.commerce.developer.doc%2Fconcepts%2Fcsdsearchindexschema.htm
No comments:
Post a Comment