[TYPO3] template with 5 news next to each other

Camilla test at test.dk
Fri Dec 8 11:46:25 CET 2006


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 -->

-- 
Best regards

Camilla 




More information about the TYPO3-english mailing list