If an object is to be rendered within an ISML template, it has to be passed onto the corresponding render artifact. The ISML module does not specify an explicit parameter for the object. The context object relation of the respective view context has to specify the object as one of its call parameters. The object is then expected to be available as entry in the pipeline dictionary of the invocation environment with a key similar to the call parameter name.
The module to trigger object rendering via view contexts in ISML is <ISVIEWCONTEXT>
.
<ISViewContext ( ViewContext = "( {ISML expression} )" ID = "( {String} | {ISML expression} )" ResourceSet = "( {String} | {ISML expression} )" )>
<ISViewContext ViewContext="#PageletConfigurationParameters:ProductView#"> or <ISViewContext ID="a.systemmanaged.viewcontext.include.pagelet2-ViewContext" ResourceSet="a_cartridge">
One of the two optional parameters (ViewContext
or ID
) has to be present when the module is executed. The module expects the ID
of a view context instance or a ViewContext
may be passed directly to the module.
Starting with Intershop 7.6
With Intershop 7.6 the new attribute ResourceSet
has been introduced that is now a required companion to the ID
parameter.
<ISVIEWCONTEXT>
is used with an ID
but without a given ResourceSet
an error is logged and the rendering of the view context will not work.ViewContext
The view context instance ready for rendering.
ID
The identifier being part of the semantic key of the view context. The content repository domain is detected automatically.
ResourceSet
Note
Valid for Intershop Commerce Suite 7.6 or later.
Usually the cartridge ID of the context object relation that uniquely identifies a system-managed view context. If ID is not denoting a system-managed view context, use the cartridge ID displayed in the View Contexts list hover shown in the Commerce Management application.