Commerce Service Center provides a configurable way to render content in the results area other than the traditional results list. For example, depending on the current refinements, the Assembler may produce results that do not include a traditional ResultList
content item, but may include other content that should be displayed to the agent. Or, you may want to render some content in addition to the traditional result list. This feature is referred to as displaying alternate content.
To display alternate content on the results page, perform the following:
Identify the content item types that contain the data to be displayed. By default, the alternate content will be displayed below the standard result list display when it is present.
Edit the configuration file to add your new content item:
alternateResultContentItemTypes=NewContentItemType1, NewContentItemType2, NewContentItemType3
Note: If you are creating multiple new content item types, the order they are listed in the configuration will determine the order that they are displayed.
Define a
PageFragment
component that identifies the JSP for rendering the alternate content. Configure this page in Commerce Service Center:resultsContentItemPageFragments=NewContentItemType1=/com/app/NewContentItemType1PageFragment
Commerce Service Center provides a default page fragment for rendering the alternate content. This default page assumes that there is a collection of product records or repository items on the content item and renders them as a list with a title heading. The property name containing the new list must be configured to use this default page:
collectionPropertyNames=+ NewContentItemType1=records
Configure the property containing the title:
resultsContentItemTitlePropertyName+= NewContentItemType1=newContentItemTitleProperty