[TYPO3-english] Generating html based on tt_news category

Pero Matic takoje at takoje.hr
Fri Jul 31 16:11:26 CEST 2009


"Michael Miousse" <mmiousse at infoglobe.ca> wrote in message 
news:mailman.1.1248963376.30982.typo3-english at lists.netfielders.de...
> 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>
> }

Hm, do you know why this doesn't work:

  20 = COA
  20.10 < plugin.tt_news
  20.10 {
    code = SINGLE
    templateFile = fileadmin/cms/singletemp.tmpl
    pid_list = 2
    select.pidInList = 1
    displaySingle {
      categoryTitle_stdWrap.wrap = <td 
id="put-{register:newsCategoryUid}">|</td>
      category_stdWrap.insertData=1
    }
  }

It doesn't wrap it :-(

Thx! 




More information about the TYPO3-english mailing list