I am using SDL Tridion 2011 SP1. I am creating Dreamweaver TBB for a component. In my component, some fields are empty. But in my TBB component I want to check if a field is empty and I should not display it. If the field is not empty, I have to display and display the value. I am encountering a problem while checking the contents of a subfield in an inline field.
My component has a single multi-valued embedded circuit field named "EMBFIELD". The EMBFIELD schema has a text box called text. I want to check if the text field is empty or not. If it is not empty, I have to iterate over the field to display the values.
I need to display the field only with "RenderComponentField". When I tried to render, it shows some error that the field does not exist.
I thought this could be done using an If block.
<div>@@RenderComponentField("Component.Fields.EMBFIELD.text",TemplateRepeatIndex)@@</div>
But this gives an error, for example,
Internal error: context component The component does not have a Component.Fields.conditionalText.text field
source share