Bloomreach Accelerator: B2C Commerce Tagged Content Component
TaggedContentComponent is a built-in delivery component which enables a tag in a content item to be used as query for a product grid, so that the a content page can be automatically enriched with products related to the content.
In the Bloomreach Accelerator: B2C Commerce Boot application, article detail pages make use of the Tagged Content Component. The first tag entered in the Tags field in an Article document is fed into the query of the product grid on the article's detail page.
TaggedContentComponent relies on the presence of a multi-valued string property called tags being present in the current content bean. In its rendering phase, TaggedContentComponent retrieves the tags property from the content bean, extracts its first value, and stores it in the request context as an attribute named StarterStoreConstants.ATTRIBUTE_QUERY. It then relies on the Product Grid Component being present in the page configuration and using that attribute to feed its product search query and render the results.
Below are the details of the component and the related configurations.
|Sitemap Item configuration||/hst:starterstoreboot/hst:configurations/starterstoreboot/hst:workspace/hst:sitemap/articles/_any_.html|