<producer name="articles">
<verbs>
<verb name="changed" default="1">
- <Define key="verbcondition" value="(not is_produced)"/>
+ <Define key="verbcondition" value="(not is_produced) and to_article_type != ${articletype.static}"/>
<Set key="limit" value="10"/>
</verb>
<verb name="all">
- <Define key="verbcondition" value=""/>
+ <Define key="verbcondition" value="to_article_type != ${articletype.static}"/>
<Set key="limit" value="-1"/>
</verb>
<verb name="sample">
- <Define key="verbcondition" value=""/>
+ <Define key="verbcondition" value="to_article_type != ${articletype.static}"/>
<Set key="limit" value="10"/>
</verb>
+
+ <verb name="test" >
+ <Define key="verbcondition" value="(id>=5000 and id<7500 ) and to_article_type != ${articletype.static}"/>
+ <Set key="limit" value="2500"/>
+ </verb>
+
+
</verbs>
<body>
<Enumerate key="article" table="content" selection="${verbcondition}"
<producer name="staticpages">
<verbs>
<verb name="changed" default="1">
- <Define key="verbcondition" value="(not is_produced)"/>
+ <Define key="verbcondition" value="(not is_produced) and to_article_type = ${articletype.static}"/>
<Set key="limit" value="10"/>
</verb>
<verb name="all">
- <Define key="verbcondition" value=""/>
+ <Define key="verbcondition" value="to_article_type = ${articletype.static}"/>
<Set key="limit" value="-1"/>
</verb>
</verbs>
<body>
- <Enumerate key="article" table="content" selection="${verbcondition} and to_article_type = ${articletype.static}"
+ <Enumerate key="article" table="content" selection="${verbcondition}"
limit="limit" order="webdb_create desc">
<Enumerate
key="media" table="image"
<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" />
<If condition="article.is_published == '1'">
<then>
generator="/article.template"
destination="${config.storageRoot}/${pathprefix}/static/${article.edittitle}.html"/>
</Language>
+
<Generate
generator="/languagebar.template"
destination="${config.storageRoot}/languagebar/${article.to_original.date.formatted.yyyy}/${article.to_original.date.formatted.MM}/${article.to_original.id}.html"/>
<body>
<FreeQuery key="topicCounts" query=" SELECT count(x.content_id) as count, t.title, t.filename 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 , t.filename ORDER BY length(t.title)"
+ WHERE c.webdb_create > NOW()-'1 day'::interval AND t.archiv_url = 'Category' GROUP BY t.title , t.filename ORDER BY t.title"
type="set"/>
<Language>
<Generate generator="/topiccount.template"
- destination="${config.storageRoot}/topiccount.html" />
+ destination="${config.storageRoot}/${pathprefix}/topiccount.html" />
</Language>
</body>
</producer>
<Language>
<Generate
generator="/randomcategory.template"
- destination="${config.storageRoot}/fpincludes/random${counter}.inc" />
+ destination="${config.storageRoot}/${pathprefix}/randomcats/random${counter}.html" />
</Language>
<Set key="counter" value="counter+1" />
<Language>
<Generate
generator="/footer.template"
- destination="${config.storageRoot}/${pathprefix}/footer.inc"/>
+ destination="${config.storageRoot}/${pathprefix}/footer.html"/>
</Language>
</body>
</producer>
+
+ <producer name="headArticle">
+ <verbs>
+ <verb name="generate" default="1" description="generates the article html head"/>
+ </verbs>
+ <body>
+ <Language>
+ <Generate
+ generator="/head.article.template"
+ destination="${config.storageRoot}/${pathprefix}/head.article.html"/>
+ </Language>
+ </body>
+ </producer>
</producers>