Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Model.Content.Site() is now called Model.Content.Root() YES OR NO?
Hi Villads
In Umbraco 8 the RenderModel has been removed, so now it is just Model instead of Model.Content.
RenderModel
Model
Model.Content
The .Site() extension method is in v8 named .Root() and basically this just wrap .AncestorOfSelf(1)
.Site()
.Root()
.AncestorOfSelf(1)
So. Model.Root() is the same as Model.AncestorOfSelf(1).
Model.Root()
Model.AncestorOfSelf(1)
/Bjarne
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Model.Content.Site() is now called Model.Content.Root() YES OR NO?
Model.Content.Site() is now called Model.Content.Root() YES OR NO?
Hi Villads
In Umbraco 8 the
RenderModel
has been removed, so now it is justModel
instead ofModel.Content
.The
.Site()
extension method is in v8 named.Root()
and basically this just wrap.AncestorOfSelf(1)
So.
Model.Root()
is the same asModel.AncestorOfSelf(1)
./Bjarne
is working on a reply...