The SXA pipelines
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.
<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 |
AppendSitemapUrl |
Adds the path of the |
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.