Maybe this is a noob error...
I'm building a news list and want to check for content in News:Text and News:Link. If there are no content in Text (news text) OR Link (pdf), then no <a href=""> will be added.
This is my lastest template:
<!--@If(News:Text!='')-->
<!--@If(News:Link!='')-->
<strong><!--@News:Heading--></strong><br>
<!--@News:Date.LongDate--> <!--@News:Manchet--><!--@News:FirstXChar-->
<!--@EndIf-->
<!--@If(News:Link='')-->
<a id="news<!--@News:ID-->" href="<!--@News:Href-->" <!--@News:LinkPopup-->>
<strong><!--@News:Heading--></strong><br>
<!--@News:Date.LongDate-->
</a>
<!--@EndIf-->
<!--@EndIf-->
<!--@If(News:Link!='')-->
<!--@If(News:Text!='')-->
<strong><!--@News:Heading--></strong><br>
<!--@News:Date.LongDate--> <!--@News:Manchet--><!--@News:FirstXChar-->
<!--@EndIf-->
<!--@If(News:Text='')-->
<a id="news<!--@News:ID-->" href="<!--@News:Href-->" <!--@News:LinkPopup-->>
<strong><!--@News:Heading--></strong><br>
<!--@News:Date.LongDate-->
</a>
<!--@EndIf-->
<!--@EndIf-->
With this template, news items without Text or Link are not printed.
I'm considering converting the template to XSLT but I think it should be possible with DW tags.
Anyone?
Regards,
Anders