Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tim 66 posts 89 karma points
    Sep 28, 2016 @ 09:41
    Tim
    0

    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:

    @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

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Sep 28, 2016 @ 09:54
    Lee Kelleher
    0

    Thanks Tim, I'll review the docs.

    Cheers,
    - Lee

Please Sign in or register to post replies

Write your reply to:

Draft