#sxa

Rules Engine and Rendering Variants

Published at June 3, 2019 ·  4 min read

The other day I was watching a presentation and learned something new. Out of the box, you can control insert options using the rules engine. Along that line of thinking, I decided to see if I could use the rules engine to customize what rendering variants show up on a component. With some customizations, I was able to use the rules engine to add/remove available rendering variants. However, there is one caveat: Sitecore caches the rendering variants using a cache key made up of the current page ID and the rendering item (in /sitecore/layouts) ID....