added extratables
authormtopper <mtopper>
Thu, 28 Jul 2005 01:29:05 +0000 (01:29 +0000)
committermtopper <mtopper>
Thu, 28 Jul 2005 01:29:05 +0000 (01:29 +0000)
etc/producer/producers.xml

index f98af36..22b24ab 100755 (executable)
         </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>