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
When i use models builder in umbraco 7 i am used to use
var = Model.Content.Children<test>();
But that dont work in umbraco 8 what do i use insteadt ?
Hi Mikkel
In Umbraco v8 the RenderModel has been removed, so instead of Model.Content it is just Model.
RenderModel
Model.Content
Model
So in your case it would be:
var items = Model.Children<Test>();
or
var items = Model.ChildrenOfType("test");
var items = Model.ChildrenOfType(Test.ModelTypeAlias);
/Bjarne
hi Bjarne it makes sense. I'll try it tomorrow. thanks for your help
Bjarne. Do you have a link to where i can read about it ?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How do i use modelsbuilder i umbraco 8
When i use models builder in umbraco 7 i am used to use
But that dont work in umbraco 8 what do i use insteadt ?
Hi Mikkel
In Umbraco v8 the
RenderModel
has been removed, so instead ofModel.Content
it is justModel
.So in your case it would be:
or
or
/Bjarne
hi Bjarne it makes sense. I'll try it tomorrow. thanks for your help
Bjarne. Do you have a link to where i can read about it ?
is working on a reply...