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
Hi Lee,
Could you update the documentation.
I've found that the two examples in the documentation about how to render nested content dont quite work in Partials View Macro Files.
I spent a fair amount of time trying to figure out why the following didn't work:
@inherits Umbraco.Web.Mvc.UmbracoViewPage @{ var items = Model.GetPropertyValue<>
I had to change it to:
@inherits Umbraco.Web.Macros.PartialViewMacroPage @{ var items = Model.GetPropertyValue<>
and for single item mode I previously found I had to do the following:
@inherits Umbraco.Web.Macros.PartialViewMacroPage @{ IPublishedContent rightbanner = CurrentPage.GetPropertyValue
Hope it helps other ppl and if I have been doing something amazingly stupid then just delete this post :D
cheers
T
Thanks Tim, I'll review the docs.
Cheers, - Lee
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Partials View Macro Files documentation
Hi Lee,
Could you update the documentation.
I've found that the two examples in the documentation about how to render nested content dont quite work in Partials View Macro Files.
I spent a fair amount of time trying to figure out why the following didn't work:
I had to change it to:
and for single item mode I previously found I had to do the following:
Hope it helps other ppl and if I have been doing something amazingly stupid then just delete this post :D
cheers
T
Thanks Tim, I'll review the docs.
Cheers,
- Lee
is working on a reply...