Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nathan Woulfe 422 posts 1580 karma points MVP 3x c-trib
    Feb 22, 2012 @ 02:07
    Nathan Woulfe
    0

    IsHelpers in v5

    The IsHelper methods don't seem to be working in v5 - is this a known issue?

    @foreach(var x in DynamicModel.AncestorsOrSelf) {
        //Can do things here
        @if (x.IsAncestorOrSelf(page)) {
        //Cannot do things here... 
        }
    }

    Error is below...

    Server Error in '/' Application.


    Could not finding matching Signature for 'IsAncestorOrSelf' with 1 parameters. Did you mean to call one of these?

  • Dan Diplo 1505 posts 5911 karma points MVP 4x c-trib
    Feb 22, 2012 @ 10:07
    Dan Diplo
    0

    As far as I can tell the implementation of "Razor" scripting in v5 is completely different, and independent to, that of V4. So a lot of features are currently missing or, possibly, might be implemented differently. If you think something is amiss you can always report it at http://issues.umbraco.org/issues

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies