[TYPO3-ttnews] new display type: news posted between certain dates

Oliver Rowlands oliver at liquidlight.co.uk
Tue Apr 3 21:49:38 CEST 2007


Hi Maria.

You are going to have to extend tt_news in order to achieve this.

Have a look at the 'processSelectConfHook' hook provided by tt_news. It 
allows you to alter the SQL query configuration which is used to 
retrieve the LIST and LATEST views. It shouldn't be a problem to append 
your 'from' and 'to' dates into the $selectConf['where'] parameter.

Hope this helps,

Oliver

Maria Garcia wrote:
> Hello,
> 
> I am using the extension xml_ttnews_import to import an rss feed of 
> calendar events into tt_news (each event's "Date/Time" is set to the 
> date and time of the event). I then am using diplay LATEST to place 
> these events into a directmail newsletter. The problem with this is that 
> I would like to have an online archive of newsletters that accurately 
> displays what was sent out and right now each newsletter's events are 
> updated the show the latest.
> 
> What would be ideal is if I could instead of display Latest, display 
> news items with Date/Time between certain dates. Could anyone point me 
> in the right direction as to how I could do that?
> 
> Thanks,
> 
> Maria


-- 
Oliver Rowlands
:: Liquid Light ::

E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk

T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35


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