Share via


contentSelection Element

The contentSelection element specifies the definition of a set of Content Selection applications.

The contentSelection element contains only the add subelement. At least one add subelement is required.

add Element

The add element specifies a new Content Selection application.

The following table lists and describes the attributes of the add element.

Attribute

Data Type

Description

name

String

The name of the Content Selection application. The value of this attribute is the reference to the application in the runtime.

This attribute is required.

cacheName

String

The name of the data cache the application uses.

This attribute is required.

selectionPipeline

String

The name of the pipeline you use to select the appropriate content. This name should correspond to the pipeline defined in the <pipelines> section of the Web.config file.

This attribute is required.

eventPipeline

String

The name of the pipeline you use for recording events. This name should correspond to the pipeline defined in the <pipelines> section of the Web.config file.

preloadCache

String

Determines whether the cache will be preloaded during application startup. The cache should be preloaded for discount type caches if you use the OrderDiscount pipeline component within a transactional Business Processing pipeline.

The value of this attribute must represent a Boolean.

The default value is false.

This attribute is required.

redirectURL

String

The URL that handles the click request for an advertisement or other piece of clickable content retrieved by the Content Selection Framework (CSF).

The default value is empty.

This attribute is optional.

Example

<contentSelection>
    <add name="advertising"
        cacheName="advertising"
        selectionPipeline="advertising"
        eventPipeline="recordEvent"
        preloadCache="false"
        redirectUrl="./redir.aspx"
    />
</contentSelection >

See Also

Reference

CommerceContentSelectionModule

ContentSelectionContext

Other Resources

Web.Config Configuration Settings