changed new articles query so that articles with 0 count show up
authormtopper <mtopper>
Wed, 20 Jul 2005 23:59:34 +0000 (23:59 +0000)
committermtopper <mtopper>
Wed, 20 Jul 2005 23:59:34 +0000 (23:59 +0000)
etc/producer/producers.xml

index 189b366..9da3456 100755 (executable)
        <verb name="doit" />
  </verbs>
  <body>
-       <FreeQuery key="topicCounts" query=" SELECT count(c.id) AS count, t.title AS title from content c, topic t, content_x_topic x
-                                            WHERE c.id = x.content_id AND t.id = x.topic_id GROUP BY t.title ORDER BY length(t.title)"
+       <FreeQuery key="topicCounts" query=" SELECT count(x.content_id) as count, t.title FROM topic as t LEFT OUTER JOIN content_x_topic 
+                                                                                as x ON (t.id=x.topic_id) LEFT OUTER JOIN content as c ON (c.id=x.content_id) 
+                                                                                WHERE t.archiv_url = 'Category' GROUP BY t.title ORDER BY length(t.title)"
                   type="set"/>
                   
        <Generate generator="/topiccount.template"