Skip to content

Latest commit

 

History

History
21 lines (16 loc) · 471 Bytes

index-vpre.7.3.0.md

File metadata and controls

21 lines (16 loc) · 471 Bytes
versionTo
7.3.0

Changes to UmbracoHelper in 7.3.0

IsProtected

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.