Custom Renderer components do not follow the naming convention of components involved in the renderer configuration. Custom Renderer components may exist in any Nucleus component path. When working with rule data:
The custom renderer is targeted by ID in the example above, but any property of the
atg.commerce.csr.rendering.RenderInfo
class, or subclass, can also be used in the targeting rules.The
SourceMap
component,ProductSkuSourceMap
in the case of this example, contains data from the current environment, including data calculated on the page in thepageData
property of theSourceMap
. This data is available for use in targeting rules.
Flexible Customization uses a Targeter to target a collection of renderer components, so there are no repository items involved. For example: atg.targeting.RuleBasedCollectionTargeter
.
Targeting rules data is contained in the BaseName
SourceMap
component, but can use data from the page, as well as global, session, or request scoped data:
Agent Profile
Customer Profile
Shopping Cart