Skip to main content
2 of 2
slightly improved readability
Bart Koopman
  • 29.6k
  • 3
  • 40
  • 90

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 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?

Will Price
  • 16.4k
  • 1
  • 21
  • 61