U4-5273 - 6.2: Umbraco.Field no longer rendering macro container

Created by Vincent Baaij 24 Jul 2014, 11:45:42 Updated by Yakov Lebski 07 Oct 2014, 05:06:27

Is duplicated by: U4-4222

In an Umbraco 6 site we previously used @Umbraco.Field(alias, recursive:true) in a MVC template to render macro's selected in a macro container. This worked really well. After upgrading the site to 6.2.1 this no longer works. Now the selected macro's are rendered as text

Example Template:

@Umbraco.Field(Model.Content, "headerSection", recursive: true)
{code} Result: {code}
{code} It doesn't make a difference if I leave out the Model.Content as parameter of the Field method


Sebastiaan Janssen 24 Jul 2014, 12:32:08

Ouch! :(

Workaround: http://sleslie.me/2014/rendermacro-and-mvc-razor/

Shannon Deminick 24 Jul 2014, 16:18:35

Can you tell us specifically what your previous 6.x site's version was?

Shannon Deminick 24 Jul 2014, 16:36:09

Found the issue and committing a fix. Macro parsing was moved to property value converters so that it works for all property access such as dynamics, IPubishedContent and Field(). Unfortunately the macro container value converter was overlooked.

Priority: Major

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 6.2.1

Due in version: 7.1.5, 6.2.2


Story Points: