I have a multi-valued embedded schema containing a text field and a multi-valued component link. I am currently using the common get linked components TBB to add the components to the package, but due to the schema being multi-valued, they are added with a prefix such as 'comp0', 'comp1', etc.
The outter loop is simple, however when I need to access the multi-valued component links I have no way of accessing the unique name on the package. The simplest solution that I can think of is to use the TemplateRepeatIndex inside of the conditional, such as:
<!-- TemplateBeginRepeat name="comp{$TemplateRepeatIndex}.fieldName" -->
However this is not working. Is this even possible? If so, what is the proper syntax?
Thanks