nazarevic
nazarevic

Reputation: 120

Get sub items in umbraco

I have the following structure: Umbraco Structure

How do I access to Features of current Product in template?

Upvotes: 0

Views: 77

Answers (1)

Zeph
Zeph

Reputation: 1728

Do you have any sample code? You would probably use the Children property. It would be something like

@foreach(var child in CurrentPage.Children)
{
    <span>@child.featureName @*Or whatever field you have on feature*@</span>
}

They put out a cheat sheet which is always handy.

Upvotes: 2

Related Questions