Copied to clipboard

Flag this post as spam?

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


  • Christian Hansen 34 posts 204 karma points
    Aug 07, 2020 @ 13:07
    Christian Hansen
    0

    Get property in partial view from home doctype.

    Hello our.

    I need som help, i have a document type "Home" with property "footerGrid" which is a content grid. Then i have a partial view "footer.cshtml" in my master.cshtml (layout page) i have in my master.cshtml this: @Html.Partial("footer")

    And in my _footer.cshtml i have:

    enter image description here

    What am i doing wrong?

  • Anders Bjerner 487 posts 2989 karma points MVP 8x admin c-trib
    Aug 07, 2020 @ 15:05
    Anders Bjerner
    100

    Hi Chrstian,

    grid is now the value of the property, but not the property it self. So I'd imagine it world work if you replace GetPropertyValue with GetProperty.

  • Christian Hansen 34 posts 204 karma points
    Aug 10, 2020 @ 06:13
    Christian Hansen
    0

    That worked!

    Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft