<verb name="generate" default="1" description="Generates the startpage"/>
</verbs>
+
<body>
<List key="startspecial" table="content" limit="1"
selection="is_published=true and to_article_type=${articletype.startspecial}"
order="webdb_create desc"/>
+
+ <Enumerate key="ssimage" table="image" selection="to_media_folder=9 and is_published=true" >
+ <Define key="ssimagepath" value="${ssimage.publish_server}/${ssimage.publish_path}" />
+ <Define key="sstitle" value="${ssimage.title}" />
+ </Enumerate>
+
<List key="features" table="content" limit="5"
selection="is_published=true and to_article_type in (${articletype.feature},${articletype.promotedcommunityarticle},${articletype.promotednewswire})"
<else>\r
<assign s=ss>\r
</if>\r
- \r
- <if s.to_media_images >\r
- <table class="imageWrap" cellspacing="0">\r
+ <if ssimagepath>\r
+ <table class="imageWrap" cellspacing="0">\r
<tr>\r
- <td class="image" style="background: url(/images/${s.to_media_images[0]["publish_path"]}) no-repeat top center;"><br /></td>\r
+ <td class="image" style="background: url(${ssimagepath}) no-repeat top center;"><br /></td>\r
</tr>\r
<tr>\r
- <td><small>${s.to_media_images[0]["title"]}</small></td>\r
+ <td><small>${sstitle}</small></td>\r
</tr>\r
- </table>\r
- </if>\r
- \r
+ </table>\r
+ </if>\r
<p class="title">\r
<b><a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.html">${s.title}</a></b>\r
</p>\r