fixed up producers.xml, still not finished though
authorzapata <zapata>
Mon, 19 Aug 2002 19:28:55 +0000 (19:28 +0000)
committerzapata <zapata>
Mon, 19 Aug 2002 19:28:55 +0000 (19:28 +0000)
templates-dist/producer/producers.xml

index faca529..1a15995 100755 (executable)
   <producer name="content">
     <verbs>
       <verb name="new">
-        <Set key="verbcondition" value=" and is_produced='f'"/>
+        <Set key="verbcondition" value="' and (not is_produced)'"/>
       </verb>
       <verb name="all">
-        <Set key="verbcondition" value=""/>
+        <Set key="verbcondition" value="''"/>
       </verb>
     </verbs>
     <body>
       <Enumerate key="data.content" table="content" selection="is_published='t' ${verbcondition}"
+                  limit="10"
                           order="webdb_create desc, date desc">
-        <If condition="data.content.id=='2' || data.content.id in ('55', '66', '77', '11', '22', '33')">
-          <then>
-            <Generate 
-                generator="/producer/content.template" 
-                destination="${config.storageRoot}/${data.content.id}.true"/>
-          </then>
-          <else>
-            <Generate 
-                generator="/producer/content.template" 
-                destination="${config.storageRoot}/${data.content.id}.false"/>
-          </else>
-        </If>
-         
         <Generate 
             generator="/producer/content.template" 
             destination="${config.storageRoot}/${data.content.date.formatted.yyyy}/${data.content.date.formatted.MM}/${data.content.id}.shtml"/>
       <verb name="new"/>
     </verbs>
     <body>
+      <Generate 
+          generator="/producer/navigation.template" 
+          destination="${config.storageRoot}/navigation.inc"/>
+    </body>
+  </producer>
+  
+  <producer name="topics">
+    <verbs>
+      <verb name="new">
+      </verb>
+    </verbs>
+    <verbs>
+      <verb name="all">
+      </verb>
+    </verbs>
+    <body>
+      <Generate 
+          generator="/producer/navigation.template" 
+          destination="${config.storageRoot}/navigation.inc"/>
     </body>
   </producer>
   
     </verbs>
 
     <body>
-<!--      <
-      <Enumerate key="data.content" table="content" selection="is_published='t' ${verbcondition}"
-                          order="webdb_create desc, date desc">-->
+      <List key="startspecial" table="content" limit="1"
+        selection="is_published=true and to_article_type=${articletype.startspecial}"
+        order="webdb_create desc, date desc"/>
+                                        
+      <List key="data.features" table="content" limit="config.all.MaxMediaUploadSize" 
+        selection="is_published=true and to_article_type=${articletype.feature}"
+        order="webdb_create desc, date desc"/>
+      <List key="data.newswire" table="content" limit="30"
+        selection="is_published=true and to_article_type=${articletype.newswire}"
+        order="webdb_create desc, date desc"/>
          
       <Generate 
-          generator="/producer/start.template" 
+          generator="/producer/startpage.template" 
           destination="${config.storageRoot}/index.shtml"/>
     </body>
   </producer>