added code to generate image and description of startpage special image
authormtopper <mtopper>
Wed, 27 Jul 2005 18:59:03 +0000 (18:59 +0000)
committermtopper <mtopper>
Wed, 27 Jul 2005 18:59:03 +0000 (18:59 +0000)
etc/producer/startpage.template

index 652a7ab..60a806f 100755 (executable)
             <tr>
                <td>
                   <div class="wrap">
-   
-                     <table class="imageWrap" cellspacing="0">
-                        <tr>
-                           <td class="image" style="background: url(http://sarai.indymedia.org/~patrick/mir.nyc/img/zapatista.07.jpg) no-repeat top center;"><br /></td>
-                        </tr>
-                        <tr>
-                           <td><small>Sandanista army in Nicaragua.</small></td>
-                        </tr>
-                     </table>
-   
                      <list startspecial as ss>
                         <assign sorig=ss.to_original>
                            <if languagepreference>
                            <else>
                               <assign s=ss>
                            </if>
+  
+                         <if s.to_media_images >
+                               <table class="imageWrap" cellspacing="0">
+                                <tr>
+                                 <td class="image" style="background: url(${s.to_media_images[0]["icon_path"]}) no-repeat top center;"><br /></td>
+                                </tr>
+                                <tr>
+                                 <td><small>${s.to_media_images[0]["title"]}</small></td>
+                                </tr>
+                               </table>
+                         </if>
+   
                            <p class="title">
                               <b><a href="${config["Producer.DocRoot"]}/${language.code}/${s.date.formatted["yyyy'/'MM"]}/${s.id}.shtml">${s.title}</a></b>
                            </p>