Pages

Wednesday, May 22, 2013

Specify landing pages for search terms in WCS FEP2+

Landing pages for Search Terms WCS FEP2+


From FEP2 onwards, IBM provides a feature in management center where the user can configure landing pages for search keywords. For example,

search term                                             landing page
help                                                         HelpContactUsView

A specific requirement was to display the same view (ContentDisplayView) but with different parameters based on different search terms as in for search term "Terms and Conditions" the landing page should be ContentDisplayView?emsName=xxx where as for "privacy policy" it should be ContentDisplayView?emsName=yyy

Configuring this scenario using a relative path of the view by passing in the parameters doesn't work. However, landing page can be an absolute URL with query parameters like shown below


Instead of ContentDisplayView as the landing page, you can have http://hostname/webapp/wcs/stores/servlet/ContentDisplayView?storeId=nnn&catalogId=xxx&emsName=zzz

This fulfills the requirement of associating the same landing page with different search terms and different URL parameters.