2 <nodedefinition name="Language">
4 <string name="languagecondition" defaultvalue=""/>
5 <string name="bundle" defaultvalue="bundles.producer" />
10 <Enumerate key="language" table="language" selection="${languagecondition}" order="code">
11 <Resource bundle="${bundle}" key="lang" language="${language.code}"/>
12 <Define key="pathprefix" value="${language.code}" />
18 <producer name="articles">
20 <verb name="changed" default="1">
21 <Set key="verbcondition" value="' and (not is_produced)'"/>
22 <Set key="limit" value="10"/>
25 <Set key="verbcondition" value="''"/>
26 <Set key="limit" value="-1"/>
30 <Enumerate key="article" table="content" selection="is_published='t' ${verbcondition}"
31 limit="limit" order="webdb_create desc, date desc">
34 generator="/producer/article.template"
35 destination="${config.storageRoot}/$pathprefix/${data.content.date.formatted.yyyy}/${data.content.date.formatted.MM}/${data.content.id}.shtml"/>
38 <MarkContent key="data.content"/>
43 <producer name="navigation">
45 <verb name="generate" default="1"/>
50 generator="/producer/navigation.template"
51 destination="${config.storageRoot}/${pathprefix}/navigation.inc"/>
56 <producer name="topicpages">
59 <Set key="pages" value="3"/>
62 <Set key="pages" value="-1"/>
66 <Enumerate key="topic" table="topic">
67 <List key="special" table="content"
68 selection="is_published='1' and to_article_type = ${articletype.topicspecial} and id in (select content_id from content_x_topic where topic_id = ${topic.id})"
69 order = "webdb_create desc, date desc" limit="1"/>
71 <Batch key="articles" infokey="batch" table="content"
72 process="pages" batchsize="20" minbatchsize="10"
73 selection="is_published='1' and to_article_type in (${articletype.newswire}, ${articletype.feature}) and id in (select content_id from content_x_topic where topic_id = ${topic.id})"
74 order="webdb_create asc">
77 <Set key="filename" value="topic.filename ++ batch.current.identifier"/>
79 generator="/producer/topicpage.template"
80 destination="${config.storageRoot}/${pathprefix}/${topic.filename}/${filename}.shtml"/>
90 <producer name="archive">
93 <Set key="pages" value="3"/>
96 <Set key="pages" value="-1"/>
100 <Batch key="articles" infokey="batch" table="content"
101 process="pages" batchsize="20" minbatchsize="10"
102 selection="is_published='1' and to_article_type in (${articletype.newswire}, ${articletype.feature})"
103 order="webdb_create asc">
106 <Set key="filename" value="archive ++ batch.current.identifier"/>
108 generator="/producer/archive.template"
109 destination="${config.storageRoot}/${pathprefix}/archive/${filename}.shtml"/>
118 <producer name="startpage">
120 <verb name="generate" default="1" description="Generates the startpage"/>
124 <List key="startspecial" table="content" limit="1"
125 selection="is_published=true and to_article_type=${articletype.startspecial}"
126 order="webdb_create desc, date desc"/>
128 <List key="features" table="content" limit="10"
129 selection="is_published=true and to_article_type=${articletype.feature}"
130 order="webdb_create desc, date desc"/>
132 <List key="newswire" table="content" limit="30"
133 selection="is_published=true and to_article_type=${articletype.newswire}"
134 order="webdb_create desc, date desc"/>
138 generator="/producer/startpage.template"
139 destination="${config.storageRoot}/${pathprefix}/index.shtml"/>