[TYPO3-english] Archived and non-archived news

Sergio Catalá Gil scatala at iti.upv.es
Tue Jun 30 18:41:43 CEST 2009


Hi list, 

To display on my home page the 3 latest NON-ARCHIVED  news, my TS config
looks like:

plugin.tt_news {
	code >
  	code = LATEST
	displayArchivedInLatest = 1
  	# Show only news which have NOT reached their archive date
  	archive = -1
	latestLimit = 3
}

But now I would like the next behaviour: if the number of news is not
reaching 3, I would like to show the latest ARCHIVED news. Is that
possible using TS on tt_news?

I would like something like this:

plugin.tt_news {
	code >
  	code = LATEST
	displayArchivedInLatest = 1
  	# Show only news which have NOT reached their archive date
	[if number_items_showing_on_home_page < 3]
  		archive = 0
 	[else]
		archive = -1
}

I think I could solve it too using some kind of "min news items" but I
can't find it on the tt_news manual reference. 

Thanks in advance, 
Sergio



More information about the TYPO3-english mailing list