versionTo |
---|
7.3.0 |
Previously you had to add a child Id to the IsProtected
method on the UmbracoHelper
.
// Old example (pre 7.3)
@foreach (var child in CurrentPage.Children) {
<h2>@child.Name</h2>
@if(Umbraco.IsProtected(child.id, child.Path)){
<blink>Members only</blink>
}
}
In the newer version the child id parameter is removed, only the Path parameter is necessary.