[TYPO3-english] Generating html based on tt_news category
Michael Miousse
mmiousse at infoglobe.ca
Thu Jul 30 16:16:16 CEST 2009
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>
}
More information about the TYPO3-english
mailing list