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>

Next steps

+1-888-365-2779
sales@sitefinity.com

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK