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 447 posts 1665 karma points MVP 5x hq 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 1554 posts 6205 karma points MVP 6x 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

Please Sign in or register to post replies

Write your reply to:

Draft