Applying the BugTrackerLayout view
To apply the layout view to other views, you must set the Layout property of the target view to the path of the layout view. Here is an example with the ProjectMaster view:
@using Telerik.Sitefinity.Model
@using Telerik.Sitefinity.DynamicModules.Model;
@model IQueryable<DynamicContent>
@{
Layout = "~/Areas/BugTracker/Views/Shared/BugTrackerLayout.cshtml";
}
<h2>
Projects</h2>
Select a project:
<ul>
@foreach (var project in Model)
{
<li>
@Html.ActionLink(project.GetValue("Title").ToString(), "Index", "Bug", new { id = project.Id }, null)
</li>
}
</ul>