Copied to clipboard

Flag this post as spam?

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


  • Remko 118 posts 283 karma points
    Dec 05, 2012 @ 11:32
    Remko
    0

    _propertyName (recursive value) in combination @CurrentPage ?

    I just have a (string) property named "bodyClass" in my new Umbraco 4.11 installation.

    In my template (_layout.cshtml), I have this:

    <body class="@CurrentPage._bodyClass">

    With this piece of code, I managed to get into an infinite loop, which seems to slow down my entire server....

    In 4.7 I used to use @Model._bodyClass for recursive values. Do I now need to do something else, other than changing Model to CurrentPage?

    Could anyone please help me with this one?

     

    Thanks in advanced,


    Remko

  • Garret 69 posts 309 karma points
    Dec 06, 2012 @ 16:10
    Garret
    0

    Hi Remko,

    Looked for a way of doing that too. Don't think is possible yet. A workaround so you can keep on developing:

    @Umbraco.Field("bodyClass", recursive: true)

    Works in 4.11.1

     

    Kind regards,

    Garret

     

Please Sign in or register to post replies

Write your reply to:

Draft