I have a project with Glass.Mapper v4 and i have a simple model class like this:
public class Separator
{
public virtual string Title { get; set; }
public virtual string CssColorClass { get; set; }
}
And a razor view like this:
@model ConexioFC.Models.Separator
This is the separator
<h2 class="@Model.CssColorClass">@Model.Title</h2>
From Sitecore i have this templates:
Then i have a View Rendering like this: This view rendering has a parameters template pointing to the template previously shown.
Then i have on the control properties of the page:
The problem is that when i go to the page preview the Model.CssColorClass
and Model.Title
are blank.