Fetch Site Settings in Layout Service using GetLayoutServiceContext Pipeline
We can add our own data to the context object at any time by extending the getLayoutServiceContextpipeline provided by the Layout Service. In my previous blog , I discussed about GraphQL approach to fetch the Site Settings item which is absolutely required in many cases where Site specific settings needs to be available across the renderings. As we already know i n Sitecore headless architecture these settings item won't be exposed to Layout service by default since this is not a part of any renderings but many renderings depend on these settings value. So we have the LayoutServiceContextpipeline provided by the Layout Service to accomplish this task. Let's do it using GetLayoutServiceContext pipeline. Assumption - Visual Studio Solution setup is already done based on the project needs or using getting started template. Use case - Let's consider this site structure and suppose we have to fetch the highlighted Site Settings using ...