[TYPO3-ttnews] Add and substitute marker with typoscript

Martin Schmidt madmat22_de at freenet.de
Thu May 10 15:17:53 CEST 2007


Could this be used to achieve sth. like the output of the category title 
before each related news title ?
Instead of :
Related News 1
Related News 2

Like:
Category1: Related News 1
Category1: Related News 2

I´m trying to to that by modifying the class.tx_ttnews.php, putting

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

into the "getRelated()" function.
Which works, but only in default language.
And I dont think its THE way to do it...

Martin

"Martin Ficzel" <martin.ficzel at gmx.de> schrieb im Newsbeitrag 
news:mailman.1.1178778293.28400.typo3-project-tt-news at lists.netfielders.de...
> Brian Bendtsen schrieb:
>> Hi
>>
>> Is it possible to add a marker like ###LATEST_NEWS_HEADER### to a
>> template used by tt_news and substitute that marker with typoscript?
>>
>> /Brian Bendtsen
>
> jes thats quite simple, but you have to write a simple extension
>
> http://typo3.org/documentation/document-library/extension-manuals/tt_news/2.5.0/view/1/9/
>
> step by step:
> - create the extension with the kickstarter (extend tt_news table if
> necessary)
> - create hook-objects and register for the hook "extraItemMarkerProcessor"
> - create the markers and content within that hook
>
> install extension and you are done
>
> regards Martin 




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