I have umbraco master page and created two partial views named "Header.cshtml" and "Footer.Html" and calling these partial views in master page that have dynamic menu functionality as well that have a separate model. Now i am facing issues in making header and footer content dynamic.
Header partial view is:`@using Website.Models;
@using Umbraco.Core.Models;
@inherits Umbraco.Web.Mvc.UmbracoViewPage<>
--This line needs to be dynamic
@RenderSubItems(Model)
@helper RenderSubItems(List
foreach (var item in listItems)
{
<a class="hlinks" href="@item.Link.Url" target="@item.Link.Target">@item.Link.Text</a>
if (item.HasSubNavigation)
{
@RenderSubItems(item.NavItems)
}
}
}
How to make Header and Footer Dynamic
Hi,
I have umbraco master page and created two partial views named "Header.cshtml" and "Footer.Html" and calling these partial views in master page that have dynamic menu functionality as well that have a separate model. Now i am facing issues in making header and footer content dynamic. Header partial view is:`@using Website.Models; @using Umbraco.Core.Models; @inherits Umbraco.Web.Mvc.UmbracoViewPage<>
@helper RenderSubItems(List
}
Master Page is:
@inherits Umbraco.Web.Mvc.UmbracoViewPage @{ Layout = null; }Footer Partial view is
is working on a reply...