</Enumerate>
- <List key="topics" table="topic t"
- selection="ctx.content_id = ${article.id} AND ctx.topic_id = t.id" />
-
- <Log message="I have a topic list with ${utility.listSize(topics)}" />
+ <List key="topics" table="topic t" extratables="content_x_topic ctx"
+ selection="ctx.content_id = ${article.id} AND ctx.topic_id = t.id" />
+ <If condition="utility.listSize(topics) > 0">
+ <then>
+ <Log message="I have a topic list with ${utility.listSize(topics)}" />
+ </then>
+ </If>
<If condition="article.is_published == '1'">
<then>
<Language>