[TYPO3-ttnews] how to display category of related news??

Martin Schmidt madmat22_de at freenet.de
Mon May 14 18:08:49 CEST 2007


hi out there,

this is bugging me for quite a while a now:

i´m trying to display the category of the related news in the single view of 
a news record.
so, instead of:

related news 1
related news 2

it should read like:

category 1: related news 1
category 1: related news 2

I did kinda succeed by putting:

 $relrow['title'] = $cUid['title'].": ".$relrow['title'];

into the getRelated() function in class.tx_ttnews.
Downside: it only works in standard language - I didn´t find the title 
generator for translations - and its gone with the next update.
I was told about hooks - but I dont have the slightest clue where to start 
or what to to with it.

Please - any hints ??

Martin 




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