However, that doesn't seem to work.
I'm getting a error message (unfortunately in Dutch, but I'll try to translate) :
"CS1973: System.Web.Mvc.HtmlHelper
I can call the Partial View, with this code :
@Html.Partial("child")
But unfortunately (and as was to be expected), the Partial View is executed on the "parent" page, not on the "child" page...
Unable to render Partial View with a Node/Page parameter
Sorry guys, I know this will probably be a no-brainer, but I'm unable to solve this myself.
Imagine that I have an Umbraco page of DocType "parent". Below I have pages of DocType "child".
I have a template for the "parent" DocType. On the "parent" page, I want to display an info snippet about the first "child".
Therefore, I have created a simple Partial View in Umbraco :
For the "parent" page, I have a template :
However, that doesn't seem to work. I'm getting a error message (unfortunately in Dutch, but I'll try to translate) : "CS1973: System.Web.Mvc.HtmlHelper
I can call the Partial View, with this code :
But unfortunately (and as was to be expected), the Partial View is executed on the "parent" page, not on the "child" page...
Any help would be appreciated!
Hi there,
I belive that if you change from dynamic content to using IPublishedContent it will work. Since UmbracoViewPage expects a IPublishedContent
Like so:
is working on a reply...