Copied to clipboard

Flag this post as spam?

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


  • Villads Claes Olesen 1 post 71 karma points
    Apr 03, 2019 @ 11:52
    Villads Claes Olesen
    0

    Model.Content.Site() is now called Model.Content.Root() YES OR NO?

    Model.Content.Site() is now called Model.Content.Root() YES OR NO?

  • Bjarne Fyrstenborg 1182 posts 3441 karma points MVP 4x c-trib
    Apr 04, 2019 @ 06:47
    Bjarne Fyrstenborg
    2

    Hi Villads

    In Umbraco 8 the RenderModel has been removed, so now it is just Model instead of Model.Content.

    The .Site() extension method is in v8 named .Root() and basically this just wrap .AncestorOfSelf(1)

    So. Model.Root() is the same as Model.AncestorOfSelf(1).

    /Bjarne

  • 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