Posts

How to Implement Custom Personalization rule in Sitecore

Image
How to Implement Custom Personalization rule in Sitecore To fulfill business needs sitecore provides many different personalization rules out of the box that can be applied on different components, however there might be cases where we have to write our custom rule or logic's to fulfill client business requirements. Sitecore architecture support this scenario very well. in this blog, we will create a custom rule in which based on query string parameter we will show different content to our website visitors. Use-Case : we would like to show component based upon the value of query string parameter "country" . below is the steps to achieve this. Step-1 : Register the Tag Create a new Custom   Tag for custom rule at this path  /sitecore/system/Settings/Rules/Definitions/Tags . for the reference i have attached the screenshot below Step-2 : Register new Element for rule Create a new Custom element folder and personalization condition at this path ...
Image
How to Implement Custom Rendering Resolver for extending the Layout service in Sitecore  JSS Although Sitecore JSS allows you to configure a Rendering Contents Resolver on each rendering, which determines how a rendering and its associated data are serialized. Rendering Contents Resolvers are configured in /sitecore/system/Modules/Layout Service/Rendering Contents Resolvers ,  we might sometimes need some custom data in Layout service which is more relevant to the need of product. so in that case we have to write our custom Rendering Resolver in Sitecore , here we will discuss about that.   By default, Sitecore JSS provides below listed resolver : Datasource Resolver - The default behavior, serializes the rendering's datasource item Datasource Item Children Resolver - Serializes the children of the datasource item Context Item Resolver - Serializes the context item instead of the datasource item Context Item Children Resolver - Serializes the...