Recently I was working with client were personalization is major component of their multi-site Sitecore based website, and we were in the need for using sitecore predefined conditions, but we hit a wall where we discovered that you can only add conditions to predefined conditions BUT with no actions although the rule editor allow you to add conditions, Do you want to know how we overcome this issue, keep reading :)
After talking to Sitecore support this is registered as a sitecore bug, To track the future status of this bug, please use the reference number 96344.
As a work around we need to apply some custom code, follow the steps below to accomplish this:
1. Build WhenRule.cs file as assembly:
2. Create the custom
“/sitecore/system/Settings/Rules/Definitions/Elements/System/Custom
Predefined Condition” predefined condition item based on the
“/sitecore/templates/System/Rules/Condition” template, as you can see form the following screenshot:
With the above simple steps you can now easily use a predefined condition to set a data source as following:
Hope this will help someone.
1 comment:
Thanks for sharing this.,
Leanpitch provides online training in Scrum Master during this lockdown period everyone can use it wisely.
Join Leanpitch 2 Days CSM Certification Workshop in different cities.
Scrum master certification
Post a Comment