[TYPO3-english] Generating html based on tt_news category

Nesto facckerr at alibaba.yo
Thu Jul 30 19:56:58 CEST 2009


Michael Miousse wrote:
> Le Thu, 30 Jul 2009 15:39:32 +0200, Pero Matic a écrit :
>
>> Hi,
>>
>> Is it possible to define some html in TS based on tt_news category?
>> For example:
>>
>> If news_category="joe" html="<font color="red">Some text</font">
>>
>> If news_category="jane" html="<font color="yellow">Some text</font">
>>
>> Thx!
>
> you mean on a news in a single view?
>
> it is possible with something like this
>
> plugin.tt_news.displaySingle.title_stdWrap.innerWrap.cObject = CASE
> {
> key.data = register:newsCategoryUid
> default = TEXT
> default.value = <div class="default">|<div>
> 3 = TEXT
> 3.value = <div class="3">|<div>
> }

Yes, this will do it. Thx! 




More information about the TYPO3-english mailing list