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 1280 posts 3990 karma points MVP 7x 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

Please Sign in or register to post replies

Write your reply to:

Draft