I'm making a DWT component template that loops multivalued componentlinked components. I want to check if a textfield in a linked component is empty, but it always gives errors. I need to use the Dreamweaver Get extention, because otherwise I can't get to my deepest linked properties:
<!-- TemplateBeginRepeat name="Component.Fields.AfbeeldingLink" -->
<img src="@@Get("Fields.AfbeeldingLink[${TemplateRepeatIndex}].Fields.Afbeelding")@@" alt="@@Get("Fields.AfbeeldingLink[${TemplateRepeatIndex}].Fields.Afbeelding.Metadata.AltTekst")@@" />
<!-- TemplateEndRepeat -->
This works fine. But now I want to check if a property like
@@Get("Fields.AfbeeldingLink[${TemplateRepeatIndex}].Fields.Afbeelding.Metadata.AltTekst")@@
is empty to do something different. How can I do that? This always gives errors:
<!-- TemplateBeginIf cond="StringLength(@@Get("Fields.AfbeeldingLink[${TemplateRepeatIndex}].Fields.Afbeelding.Metadata.AltTekst")@@) > 0" -->
Like ' a ; is needed'.
Does anybody has an idea ?
Kind regards, Herman