<GenerateMedia key="media" />
</Enumerate>
+
+
<Enumerate
key="media" table="otherMedia"
selection="exists (select * from content_x_media where media_id=other_media.id and content_id=${article.id})
<GenerateMedia key="media" />
</Enumerate>
+
+ <List key="topics" table="topic t"
+ selection="ctx.content_id = ${article.id} AND ctx.topic_id = t.id" />
+
<If condition="article.is_published == '1'">
<then>
<Language>
<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" />
-
+ <Language>
<Generate
generator="/randomcategory.template"
destination="${config.storageRoot}/fpincludes/random${counter}.inc" />
-
+ </Language>
<Set key="counter" value="counter+1" />
</Enumerate>