[TYPO3] template with 5 news next to each other

Staffan Ericsson staffan at zytor.com
Fri Dec 8 15:23:31 CET 2006


Have you configured the extension at pagelevel so it will use 5
alternate templates for latest/list?

.staffan

Camilla skrev:
> Hi
> 
> I hope someone can help - I have tried to create a template for tt_news
> where the news i listed next to each other by 5 and then a new line with the
> next 5 news and so forth. But the template I created only list 2 news by
> each other and then go to next line...It seem like it only sees the first
> two ###news### in the template. Please help :o)
> 
> <!-- ###TEMPLATE_LIST### begin
>  This is the template for the list of news in the archive or news page or
> search
> -->
> <table cellpadding="0" cellspacing="0" border="0" width="98%">
> 
> ###NEWS_CATEGORY_ROOTLINE###
>  <!-- ###CONTENT### begin
>     This is the part of the template substituted with the list of news:
>  -->
>   <!-- ###NEWS### begin
>    Template for a single item
>   --><tr><td><table cellpadding="0" cellspacing="0" border="0">
>    <tr><td>###NEWS_IMAGE###</td></tr>
>    <tr>
>     <td valign="top" class="boldtext">
>       ###NEWS_TITLE###
> 
>     </td>
>    </tr>
>    <tr >
>     <td valign="top" class="normaltext">
> 
>       ###NEWS_CONTENT###
>     </td>
>    </tr></table>
> 
>   <!-- ###NEWS### end-->
>   <!-- ###NEWS_1### begin
>    Template for an alternative item in single view
>   -->
>   <td><table cellpadding="0" cellspacing="0" border="0">
>    <tr><td>###NEWS_IMAGE###</td></tr>
>    <tr>
>     <td valign="top" class="boldtext">
>      ###NEWS_TITLE###
> 
>     </td>
>    </tr>
>    <tr>
>     <td valign="top" class="normaltext">
> 
>      ###NEWS_CONTENT###
>     </td>
>    </tr></table>
> 
>   <!-- ###NEWS_1### end-->
>   <!-- ###NEWS_2### begin
>    Template for a single item
>   --><td><table cellpadding="0" cellspacing="0" border="0">
>    <tr><td>###NEWS_IMAGE###</td></tr>
>    <tr>
>     <td valign="top" class="boldtext">
>       ###NEWS_TITLE###
> 
>     </td>
>    </tr>
>    <tr >
>     <td valign="top" class="normaltext">
> 
>       ###NEWS_CONTENT###
>     </td>
>    </tr></table>
> 
>   <!-- ###NEWS_2### end-->
>   <!-- ###NEWS_3### begin
>    Template for an alternative item in single view
>   -->
>   <td><table cellpadding="0" cellspacing="0" border="0">
>    <tr><td>###NEWS_IMAGE###</td></tr>
>    <tr>
>     <td valign="top" class="boldtext">
>      ###NEWS_TITLE###
> 
>     </td>
>    </tr>
>    <tr>
>     <td valign="top" class="normaltext">
> 
>      ###NEWS_CONTENT###
>     </td>
>    </tr></table>
> 
>   <!-- ###NEWS_3### end-->
>    <!-- ###NEWS_4### begin
>    Template for an alternative item in single view
>   -->
>   <td><table cellpadding="0" cellspacing="0" border="0">
>    <tr><td>###NEWS_IMAGE###</td></tr>
>    <tr>
>     <td valign="top" class="boldtext">
>      ###NEWS_TITLE###
> 
>     </td>
>    </tr>
>    <tr>
>     <td valign="top" class="normaltext">
> 
>      ###NEWS_CONTENT###
>     </td>
>    </tr></table></td></tr>
> 
>   <!-- ###NEWS_4### end-->
>     <!-- ###NEWS_5### begin
>    Template for a single item
>   --><tr><td><table cellpadding="0" cellspacing="0" border="0">
>    <tr><td>###NEWS_IMAGE###</td></tr>
>    <tr>
>     <td valign="top" class="boldtext">
>       ###NEWS_TITLE###
> 
>     </td>
>    </tr>
>    <tr >
>     <td valign="top" class="normaltext">
> 
>       ###NEWS_CONTENT###
>     </td>
>    </tr></table></td></tr>
> 
>   <!-- ###NEWS_5### end-->
>  <!-- ###CONTENT###  end -->
> 
> </table>
> 
> 
> 
> <!-- ###TEMPLATE_LIST### end -->
> 


More information about the TYPO3-english mailing list