Skip to main content
slightly improved readability
Source Link
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

We are experiencing sporadic issues with @RenderComponentField()@RenderComponentField() in our Razor templates. It seems that sometimes it does not render the field, just an empty TCDL tag, even when there is content in the field. 

I have not yet managed work out any pattern for when this is occurring, initially we thought it was just embedded schema fields, but now itsit's happening on the most basic top-level text fields. For example:

@RenderComponentField("Heading",0)
@RenderComponentField("Heading",0)

Changing the code to 'normal' syntax it works fine with the same content:

@Fields.Heading
@Fields.Heading

Has anyone else experienced this, or have any idea what might be going on?

We are experiencing sporadic issues with @RenderComponentField() in our Razor templates. It seems that sometimes it does not render the field, just an empty TCDL tag, even when there is content in the field. I have not yet managed work out any pattern for when this is occurring, initially we thought it was just embedded schema fields, but now its happening on the most basic top-level text fields. For example:

@RenderComponentField("Heading",0)

Changing the code to 'normal' syntax it works fine with the same content:

@Fields.Heading

Has anyone else experienced this, or have any idea what might be going on?

We are experiencing sporadic issues with @RenderComponentField() in our Razor templates. It seems that sometimes it does not render the field, just an empty TCDL tag, even when there is content in the field. 

I have not yet managed work out any pattern for when this is occurring, initially we thought it was just embedded schema fields, but now it's happening on the most basic top-level text fields. For example:

@RenderComponentField("Heading",0)

Changing the code to 'normal' syntax it works fine with the same content:

@Fields.Heading

Has anyone else experienced this, or have any idea what might be going on?

Source Link
Will Price
  • 16.4k
  • 1
  • 21
  • 61

Sporadic issues with @RenderComponentField using Razor Mediator for Tridion 2013

We are experiencing sporadic issues with @RenderComponentField() in our Razor templates. It seems that sometimes it does not render the field, just an empty TCDL tag, even when there is content in the field. I have not yet managed work out any pattern for when this is occurring, initially we thought it was just embedded schema fields, but now its happening on the most basic top-level text fields. For example:

@RenderComponentField("Heading",0)

Changing the code to 'normal' syntax it works fine with the same content:

@Fields.Heading

Has anyone else experienced this, or have any idea what might be going on?