[TYPO3-english] Take over function displayList tt_news

Michael Miousse mmiousse at infoglobe.ca
Fri Jan 9 19:47:53 CET 2009


Le Fri, 09 Jan 2009 08:29:52 -0800, StephenBungert a écrit :

> There's an option in tt_news to have alternate templates, like 10 for
> the list view for example (as many as you like, if you need more than 10
> make more). You could then add a banner to third template.
> 
> Look for the property alternating layouts in the reference section:
> http://typo3.org/documentation/document-library/extension-manuals/
tt_news/2.5.2/view/1/7/#id3857717
> 
> -----
> --
> Stephen Bungert

He is rigth and your template would look like this and  be shure that 
alternatingLayouts is activated.

<!-- ###TEMPLATE_LIST### begin
	This is the template for the list of news in the archive or news 
page or search
-->
<div class="news-list-container">
###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 
		-->
			<div class="news-list-
item">				
			  <h3>
<span class="news-list-date">###NEWS_DATE###</span>
<!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></h3>
			  <!--###LINK_ITEM###-->###NEWS_IMAGE###<!--
###LINK_ITEM###-->
			 ###NEWS_SUBHEADER###
			###CATWRAP_B### ###TEXT_CAT### 
###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E###
			<div class="news-list-morelink"><!--
###LINK_ITEM###-->###MORE###<!--###LINK_ITEM###--></div>

<hr class="clearer" /></div>
		<!-- ###NEWS### end-->
		<!-- ###NEWS_1### begin
			Template for a single item 
		-->
			<div class="news-list-
item">				
			  <h3>
<span class="news-list-date">###NEWS_DATE###</span>
<!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></h3>
			  <!--###LINK_ITEM###-->###NEWS_IMAGE###<!--
###LINK_ITEM###-->
			 ###NEWS_SUBHEADER###
			###CATWRAP_B### ###TEXT_CAT### 
###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E###
			<div class="news-list-morelink"><!--
###LINK_ITEM###-->###MORE###<!--###LINK_ITEM###--></div>

<hr class="clearer" /></div>
		<!-- ###NEWS_1### end-->
		<!-- ###NEWS_2### begin
			Template for a single item 
		-->
			<div class="news-list-
item">				
			  <h3>
<span class="news-list-date">###NEWS_DATE###</span>
<!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--></h3>
			  <!--###LINK_ITEM###-->###NEWS_IMAGE###<!--
###LINK_ITEM###-->
			 ###NEWS_SUBHEADER###
			###CATWRAP_B### ###TEXT_CAT### 
###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E###
			<div class="news-list-morelink"><!--
###LINK_ITEM###-->###MORE###<!--###LINK_ITEM###--></div>

<hr class="clearer" /></div>
			###BANNER###
		<!-- ###NEWS_2### end-->
	<!-- ###CONTENT###  end -->
	<div class="news-list-browse">###BROWSE_LINKS###</div>
</div>
<!-- ###TEMPLATE_LIST### end -->





More information about the TYPO3-english mailing list