Wednesday, May 11, 2016

How to use parameters on a Rendering. Not Rendering Parameters.

1. Create two or more rendering items that point to the same View
2. In the Parameters field on each rendering type in the say the name of the class ("img-left") in one of them and "image-right" in the other
3. On the view read that parameters:

<section id="Channels" class="hero platform @Model.Item.GetThemeCssClass() @RenderingContext.Current.Rendering.RenderingItem.Parameters hasLink">

No comments:

Post a Comment