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

Chris chris at dreamride.de
Thu Jun 4 12:29:34 CEST 2009


Hi Steffen,

thanks for your answer, my newstemplate part for the listview looks like 
this:

<!-- ###TEMPLATE_LIST### begin -->
<div class="ctrlbar">###BROWSE_LINKS###</div>
<div class="teaser">
	<!-- ###CONTENT### begin- ->
		<!-- ###NEWS### begin -->		
			<h3>###NEWS_DATE### - ###NEWS_TITLE###</h3>
			<p 
class="img"><!--###LINK_ITEM###-->###NEWS_IMAGE###<!--###LINK_ITEM###--></p>
			<p> ###NEWS_SUBHEADER###	 
<strong><!--###LINK_ITEM###-->###MORE###<!--###LINK_ITEM###--></strong></p>

DONT SHOW THIS PART WHEN ITS THE LAST NEWS IN LIST ->
<div class="hr"><hr /></div>

		<!-- ###NEWS### end-->
	<!-- ###CONTENT###  end -->
</div>
<div class="ctrlbar">###BROWSE_LINKS###</div>
<!-- ###TEMPLATE_LIST### end -->

I dont show the last hr div in the list view. Whats the way to handle 
this with option split. Thought option split is just working within menu 
building, isnt it?

Thanks a lot for any ideas in advantage,

Chris

Steffen Gebert schrieb:
> Chris wrote:
>> is there any possibility to specify the last
>> element within the list view of the news. I want t
>> hide the <hr /> textdivider below the last news at one site.
>>
>> Thanks in advantage for your help and best regards,
> 
> Maybe optionSplit for the appropriate wrap could help..
> 
> Steffen
> 


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