<Language>
<Generate
generator="/article.template"
- destination="${config.storageRoot}/${pathprefix}/${article.date.formatted.yyyy}/${article.date.formatted.MM}/${article.id}.shtml"/>
+ destination="${config.storageRoot}/${pathprefix}/${article.date.formatted.yyyy}/${article.date.formatted.MM}/${article.id}.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}.shtml"/>
+ destination="${config.storageRoot}/languagebar/${article.to_original.date.formatted.yyyy}/${article.to_original.date.formatted.MM}/${article.to_original.id}.html"/>
<IndexContent key="article" pathToIndex="${config['IndexPath']}"/>
</then>
<else>
<Language>
<Generate
generator="/article.template"
- destination="${config.storageRoot}/${pathprefix}/static/${article.edittitle}.shtml"/>
+ 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}.shtml"/>
+ destination="${config.storageRoot}/languagebar/${article.to_original.date.formatted.yyyy}/${article.to_original.date.formatted.MM}/${article.to_original.id}.html"/>
<IndexContent key="article" pathToIndex="${config['IndexPath']}"/>
</then>
<else>
<Language>
<Generate
generator="/navigation.template"
- destination="${config.storageRoot}/${pathprefix}/navigation.inc"/>
+ destination="${config.storageRoot}/${pathprefix}/navigation.html"/>
</Language>
</body>
</producer>
</verb>
</verbs>
<body>
- <Define key="docSuffix" value=".shtml"/>
- <Define key="storageSuffix" value=".shtml"/>
+ <Define key="docSuffix" value=".html"/>
+ <Define key="storageSuffix" value=".html"/>
<Batch key="articles" infokey="batch" table="content"
process="pages" batchsize="20" minbatchsize="10"
</verb>
</verbs>
<body>
- <Define key="docSuffix" value=".shtml"/>
- <Define key="storageSuffix" value=".shtml"/>
+ <Define key="docSuffix" value=".html"/>
+ <Define key="storageSuffix" value=".html"/>
<Batch key="articles" infokey="batch" table="content"
process="pages" batchsize="20" minbatchsize="10"
<Language>
<Generate
generator="/newswireinclude.template"
- destination="${config.storageRoot}/${pathprefix}/newswireinclude.shtml"/>
+ destination="${config.storageRoot}/${pathprefix}/newswireinclude.html"/>
</Language>
<Language>
<Generate
generator="/newswireinclude.template"
- destination="${config.storageRoot}/${pathprefix}/rssnewswireinclude.shtml"/>
+ destination="${config.storageRoot}/${pathprefix}/rssnewswireinclude.html"/>
</Language>
<Radicalendar key="calendar" groupname="_imc" gmtoffset="60" />
<Generate
generator="/radicalendar.template"
- destination="${config.storageRoot}/calendarinclude.shtml"/>
+ destination="${config.storageRoot}/calendarinclude.html"/>
</body>
<verb name="doit" />
</verbs>
<body>
- <FreeQuery key="topicCounts" query=" SELECT count(x.content_id) as count, t.title FROM topic as t LEFT OUTER JOIN content_x_topic
+ <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 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}/${pathprefix}/topiccount.shtml" />
+ destination="${config.storageRoot}/${pathprefix}/topiccount.html" />
+ </Language>
</body>
</producer>
<Set key="counter" value="1"/>
<Enumerate key="category" table="topic t" extratables="topic t2"
- selection="t.id=t2.id AND t.archiv_url = 'Category' AND (SELECT count(*) from content_x_topic where topic_id = t.id) > 0" order="RANDOM()" limit="20">
+ selection="t.id=t2.id AND t.archiv_url = 'Subcategory' AND (SELECT count(*) from content_x_topic where topic_id = t.id) > 0" order="RANDOM()" limit="10">
<Log message="Getting Last 5 articles for category: ${category.title} - counter: ${counter}" />
<Define key="topictitle" value="${category.title}" />
- <Define key="topicfile" value="${category.filename"} />
+ <Define key="topicfile" value="${category.filename}" />
<List key="randomarticles" table="content"
selection ="id in (select content_id from content_x_topic where topic_id = ${category.id})" order="date DESC"
- limit="1" />
+ limit="3" />
<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>