Copied to clipboard

Flag this post as spam?

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


  • Andre Sousa 15 posts 145 karma points
    Aug 19, 2016 @ 10:39
    Andre Sousa
    0

    How can i render a published content on a partial view?

    Hi, I'm having an issue while trying to render a published content on a partial view. I tried to do using the GetPropertyValue, but this only renders a string of all attributes of the published content. Partial View Render

    I need some help.

    Thanks in advance!

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Aug 19, 2016 @ 10:44
    Dennis Aaen
    100

    Hi Andre,

    To me it´s looks like that you are using the Grid layout, if this the case please have a look here.

    https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/grid-layout/render-grid-in-template

    Hope this helps,

    /Dennis

  • Andre Sousa 15 posts 145 karma points
    Aug 19, 2016 @ 11:22
    Andre Sousa
    0

    I think this is the way, but how can i get the grid layout from a specific published content? In the picture below i have this contentNode that represents the published content that i want to render, is it possible to GetGridHtml from it?

    enter image description here

    One more time, Thank you.

    Andre.

  • Andre Sousa 15 posts 145 karma points
    Aug 19, 2016 @ 11:30
    Andre Sousa
    0

    I figured it out!

    @contentNode.GetGridHtml(Html, "content")
    

    Thank you so much for your help Dennis!

Please Sign in or register to post replies

Write your reply to:

Draft