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
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
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
_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
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
is working on a reply...