Customizing LayoutService Pipeline for SXA - Part 2
In this part, I will cover the implementation with the code. As mentioned in the previous blog, We have to make changes to Sitecore.XA.Feature.LayoutServices.Integration to achieve it. Step 1: Create a new class file for patching with the name BasicLayoutTransformer.cs Step 2: Copy the existing code from Sitecore.XA.Feature.LayoutServices.Integration.Transformations.BasicLayoutTransformer Step 3: Modify the BasicLayoutTransformer class with the changes we need as per the requirement. Override the TransformElement method with the below code. Step 4: Add a config file that modifies the < transformer type = " Sitecore.XA.Feature.LayoutServices.Integration.Transformations.BasicLayoutTransformer, Sitecore.XA.Feature.LayoutServices.Integration " resolve = " true " /> node with our newly created class and Namespace . ...