[TYPO3-ttnews] How to get the last element in the LIST view

Chris Bernhard chris at dreamride.de
Tue Apr 20 16:42:35 CEST 2010


Am 20.04.2010 13:38, schrieb Marcus 'biesior' Biesioroff:
> 2009-06-03 10:42, Chris:
>> I want t
>> hide the <hr /> textdivider below the last news at one site.
>
> Hide? remove? ... can't you just modify the template ?
>

Hi Marcus,

my HTML output should look like this structure:

<div class="box"> // wrap about each two news in list view
   <div class="newsblock">
	... news contents like text, images and so on.
   </div>

   <div class="newsblock last">
	... news contents like text, images and so on.
   </div>
</div>

<div class="box">
   <div class="newsblock last"> // every last element in one block 
should get th class "last"
	... news contents like text, images and so on.
   </div>
</div>

Is this structure now possible with e.g. optionSplit and how can i 
implement this?

Means that the last layout in the list should have an another template
and every two (or three, or four) list items should be wrapped by the 
<div class="box">.

Thanks in advantage and best regards,

Chris


More information about the TYPO3-project-tt-news mailing list