made it outside of language
[nyc.indymedia.org.git] / etc / producer / producers.xml
index cec5ab2..73c45b1 100755 (executable)
         <Set key="limit" value="2500"/>
       </verb>
 
-
+      <verb name="regen">
+       <Define key="verbcondition" value="(not is_produced) and to_article_type != ${articletype.static}"/>
+       <Set key="limit" value="5000"/>
+      </verb>
     </verbs>
     <body>
       <Enumerate key="article" table="content" selection="${verbcondition}"
 
              <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">
+                  <!--<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'">
+                  </If>-->
+             <Log message="I am generating: ${article.id}"/>
+
+  <If condition="article.is_published == '1'">
           <then>
             <Language>
               <Generate 
           <then>
             <Language>
               <Generate 
-                generator="/article.template" 
+                generator="/staticpage.template" 
                 destination="${config.storageRoot}/${pathprefix}/static/${article.edittitle}.html"/>
              </Language>
 
     </body>
   </producer>
   
+  
+   <producer name="staticfiles">
+    <verbs>
+      <verb name="generate" default="1" description="copies all the static image files into place"/>
+    </verbs>
+    <body>
+      <CopyDir destination="js" source="etc/producer/js"/>
+    </body>
+  </producer>
+  
   <producer name="newswirearchive">
     <verbs>
       <verb name="new">
       <verb name="generate" default="1" description="Generates the startpage"/>
     </verbs>
 
+
     <body>
       <List key="startspecial" table="content" limit="1"
         selection="is_published=true and to_article_type=${articletype.startspecial}"
         order="webdb_create desc"/>
+
+      <Enumerate key="ssimage" table="image" selection="to_media_folder=9 and is_published=true" >       
+       <Define key="ssimagepath" value="${ssimage.publish_server}/${ssimage.publish_path}" />
+       <Define key="sstitle" value="${ssimage.title}" />
+      </Enumerate>
+                                        
                                         
       <List key="features" table="content" limit="5" 
         selection="is_published=true and to_article_type in (${articletype.feature},${articletype.promotedcommunityarticle},${articletype.promotednewswire})"