Not wishing to be a pedant, but the prefered way in 4.7.1 and up is to use @Library.NodeById in preference to @Model.NodeById. The two do the exact same thing, it's just that the latter has been deprecated in favour of the former (due to the fact that it's more logical to separate node retrieval from the Model).
Model.NodeById(Model.Contentpicker)
Hi Guys
I'm trying to create a navigational loop, that shows all the children of the node I've selected in a content-picker
But I'm getting the error:
Error loading Razor Script SubNavTrailerModeller.cshtml
Cannot instantiate a DynamicNode without an id
I've tried multiple things, but apparently not the right one - Any help would be greatly appreciated, as I really don't wanna hard-code the Id.
Best regards
Jimmy Dan Mortensen
If parent is an id this should work:
Jeroen
dah ... I've been starring at this for 30 minutes now not seeing what the f*** I was doing wrong :-)
Thank you for pointing out the obvious ;-)
Jimmy
Not wishing to be a pedant, but the prefered way in 4.7.1 and up is to use @Library.NodeById in preference to @Model.NodeById. The two do the exact same thing, it's just that the latter has been deprecated in favour of the former (due to the fact that it's more logical to separate node retrieval from the Model).
is working on a reply...