Rendering Parameters Generator
Generate Sitecore rendering parameter templates and code for component configuration.
// Configure your rendering parameters on the left to generate output
How to Use the Rendering Parameters Generator
The Sitecore Rendering Parameters Generator produces both the Sitecore template definition and a strongly-typed C# model class for rendering parameters. Rendering parameters allow content editors to configure component-level settings — such as layout variants, background colors, or content references — directly in the Experience Editor or Pages editor.
Enter your rendering name and namespace, then add parameter fields using the appropriate Sitecore field type for each. Switch between the Sitecore Template Definition and C# Model Class tabs to see both outputs. Copy and use them as the basis for your Sitecore rendering parameters template and corresponding C# class.
Field Type to C# Type Mapping
- Single-Line Text / Multi-Line Text →
string - Checkbox →
bool - Integer →
int - Number →
decimal - Image →
Sitecore.Data.Fields.ImageField - Droplink / Droplist →
Sitecore.Data.ID - Treelist / Multilist →
IEnumerable<Sitecore.Data.ID>
Using Rendering Parameters in Sitecore MVC
After creating the Sitecore template, create a rendering parameters template item in the Sitecore content tree under /sitecore/templates/User Defined. Assign the template to your rendering's Parameters Template field. In your controller, use RenderingContext.CurrentOrNull.Rendering.Parameters to access the values and map them to your strongly-typed model class.