I'm new to Umbraco.
I am in the process of doing a new own site.
I have a file Home. In it loading all of his children (I make navigation and site structure). In the files "children" have the code that loads to the Home (if you want).
I do not have access to properties contained in the files of children.
How do I get to them? In an headTitle and headText.
Home:
@{
var childrens = @CurrentPage.Children.Where("Visible");
}
@{
Html.RenderPartial("Navigation");
if (childrens != null)
{
foreach (var children in childrens)
{
Html.RenderPartial((string)children.DocumentTypeAlias, Model.Content);
Html.RenderPartial("Separator");
}
;
}
;
}
Acceess do Children properties
I'm new to Umbraco. I am in the process of doing a new own site. I have a file Home. In it loading all of his children (I make navigation and site structure). In the files "children" have the code that loads to the Home (if you want).
I do not have access to properties contained in the files of children.
How do I get to them? In an headTitle and headText.
Home:
Head (Partial):
is working on a reply...