Posts

Showing posts with the label accessing rendering parameters

Rendering Parameters and Rendering Parameter Templates in Sitecore

Image
Hey ,  there! Welcome to "Sitecore Series" Post is all about sharing the details about rendering parameters and accessing rendering parameters in code. What are rendering parameters? Rendering parameters are used to pass some extra data to a rendering and to give some control to content author on rendering display. Scenarios: 1) To handle a requirement , where the rendering to be displayed with different background colors. 2) To display a component in different ways based on the value selection. 3) Applying different css classes to the rendering. 1) How to Create Rendering Parameters: Let's take a look at below steps to understand the rendering parameters creation. As we all know the data templates are created from "standard template" but for rendering parameters the template to be created from  "Standard Rendering Parameters Template" Here is the path for the Standard Rendering Parameters Template: Templates/System/Layout/Rendering Parameters/Standard...