made most commmented not check for hidden comments
[nyc.indymedia.org.git] / etc / producer / producers.xml
index fd799b1..5546f53 100755 (executable)
@@ -1,6 +1,5 @@
 <!--
-  This XML file defines a set of producers intended for a typical indymedia 
-  site:
+    This XML file defines a set of producers intended for a typical indymedia site:
     - a start page
     - a navigational bar
     - topic pages
             
            <GenerateMedia key="media" />
         </Enumerate>
-        <List key="topics" table="topic t" extratables="content_x_topic ctx"
-               selection="ctx.content_id = ${article.id} AND ctx.topic_id = t.id"  />
+       <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="article.is_published == '1'">
           <then>
         selection="is_published=true and to_article_type=${articletype.startspecial}"
         order="webdb_create desc"/>
                                         
-      <List key="features" table="content" limit="4
+      <List key="features" table="content" limit="5
         selection="is_published=true and to_article_type in (${articletype.feature},${articletype.promotedcommunityarticle},${articletype.promotednewswire})"
         order="webdb_create desc"/>
 
       <List key="mostcomments"
                  table="content c"
                  extratables="comment cm"
-                 selection="c.webdb_create > NOW()-'2 years'::interval and c.is_published=true and c.id=cm.to_media group by c.id,c.title,
+                 selection="c.webdb_create > NOW()-'2 weeks'::interval and c.is_published=true and and cm.is_published=true and c.id=cm.to_media group by c.id,c.title,
                                         c.subtitle,c.edittitle,c.date,c.creator,c.creator_main_url,c.creator_email,c.creator_address,c.creator_phone,c.description,
                                         c.comment,c.source,c.is_published,c.is_produced,c.to_publisher,c.to_language,c.to_rights,c.webdb_create,c.webdb_lastchange,
                                         c.content_data,c.is_html,c.to_article_type,c.to_content,c.keywords,c.to_locking_user"
-                         order="count(cm.id) desc"
+                         order="count(cm.id) desc, c.webdb_create desc "
                          limit="3"
                    />