Hi
I have a weird problem in my product template. I'm trying to output the value of all custom fields by doing this:
@foreach (var CustomFieldElement in GetLoop("CustomFieldList")) {
string loopname = CustomFieldElement.GetString("Ecom:CustomField.System");
<tr>
<td>@CustomFieldElement.GetString("Ecom:CustomField.Name"):</td>
<td>
@foreach (var CustomField in GetLoop(loopname + ".Options")) {
if (CustomField.GetBoolean(loopname + ".Option.IsSelected")) {
@CustomField.GetString(loopname + ".Option.Name")<text>, </text>
}
@*@CustomField.TemplateTags()*@
}
</td>
</tr>
}
I'm doing it this way because I need the field names, not values and I have too many custom fields to do it manually. This works, but if I remove @*@CustomField.TemplateTags()*@ nothing is outputted.
Does anybody how to remove the TemplateTag() and still show the content, or does somebody know a better way to output the content?
Regards Thomas