The SXA pipelines

Current version: 10.4

Understanding how the pipelines and their processors work provides you with an insight into how dependencies are rendered, how tokens for rendering variants are created, how CSS classes are generated, and so on.

A pipeline consists of a sequence of processors. A processor is a .NET class that implements a method. When a pipeline is invoked, the processors are run in order. You can extend and customize the pipelines by adding or replacing processors. Extending a pipeline involves modifying the pipeline definition located in a Sitecore patch file.

decorateRendering

The decorateRendering pipeline is used to decorate the rendering's outer <div> tag with attributes. These can be standard attributes, such as id or class, but you can also add custom data attributes.

RequestResponse

<div class="component title">
<div class="component-content">
<h2 class="field-title">
Title of the page
</h2>
</div>
</div>

getRobotsContent

The getRobotsContent pipeline is used to extend the response provided to search crawler robots in the robots.txt file. The Robots.txt file is a simple text file on your site’s root directory that tells search engine robots what to crawl and what not to crawl on your site. The getRobotsContent pipeline contains the following processors:

Processor

Description

GetContentFromSettings

Checks if the robots' content field is filled and uses its value.

GetDefaultRobotsContent

Checks the robots.txt file for a value when the robots' content field is empty.

AppendSitemapUrl

Adds the path of the sitemap.xml file to the robots' content field.

refreshHttpRoutes

The refreshHttpRoutes pipeline is used to refresh HTTP routes after changes in site configuration.

getStyles

The getStyles pipeline is used to get all styles from current and shared sites. This pipeline is defined in the Sitecore.XA.Foundation.Presentation.config file and includes the following processors:

Processor

Description

GetSiteStyles

Gets all styles on the site.

GetSharedStyles

Gets all styles on shared sites.

getDevices

The getDevices pipeline is used to get all devices, including information about device width and default device, to make the devices available for selection in the Pages application. The pipeline belongs to the XA.Horizon pipeline group.

Do you have some feedback for us?

If you have suggestions for improving this article,