- <Enumerate key="data.content" table="content" selection="is_published='t' ${verbcondition}"
- limit="10" order="webdb_create desc, date desc">
- <Generate
- generator="/producer/content.template"
- destination="${config.storageRoot}/${data.content.date.formatted.yyyy}/${data.content.date.formatted.MM}/${data.content.id}.shtml"/>
- <MarkContent key="data.content"/>
+ <Enumerate key="article" table="content" selection="is_published='t' ${verbcondition}"
+ limit="limit" order="webdb_create desc, date desc">
+ <Language>
+ <Generate
+ generator="/article.template"
+ destination="${config.storageRoot}/${pathprefix}/${article.date.formatted.yyyy}/${article.date.formatted.MM}/${article.id}.shtml"/>
+ </Language>
+
+ <MarkContent key="article"/>
+
+ <!-- uncomment the following if you want to make a pdf version of each article -->
+ <!-- also, you could move it up into the language tag and adjust the paths accordingly
+ to make pdfs in each language -->
+ <!-- PDFPreFormat splits up the text and mixes images in with it -->
+ <!--<PDFPreFormat key="article.content" numLinesBetweenImages="3" charWidthCM="0.19" pixelWidthCM="0.035" contentAreaWidthCM="16" lineHeightCM="0.5" />-->
+ <!-- Regular Generate Tag is used to produce an fo file(but using the split-up content -->
+ <!--<Generate generator="/printablecontent.template" destination="${config.storageRoot}/${article.content.date.formatted.yyyy}/${article.content.date.formatted.MM}/${article.content.id}.fo"/>-->
+ <!-- Finally, PDFGenerate turns the fo file into a pdf. You could leave this step out
+ and generate pdfs on the fly using the getpdf OpenMir module as well. Make sure to fill in the real path on the stylesheet attribute-->
+ <!--<PDFGenerate generator="${config.storageRoot}/${article.content.date.formatted.yyyy}/${article.content.date.formatted.MM}/${article.content.id}.fo" destination="${config.storageRoot}/${article.content.date.formatted.yyyy}/${article.content.date.formatted.MM}/${article.content.id}.pdf" stylesheet="/real/path/goes/here/templates/producer/html2fo.xsl" />-->
+
+