[TYPO3] Value from TS into html

Denis Mrkota denis.mrkota at antispam.com
Fri Sep 26 10:39:56 CEST 2008


"Morten Kjems" <mortenkjems at gmail.com> wrote in message 
news:mailman.1.1222368865.27488.typo3-english at lists.netfielders.de...
> Hi Denis.
>
>> Ok, found it..
>
> I have never used markers in my templates but I just got curious.
>
> Could you post the answer.

This is what i did:

color = TEXT
color.value = #FFFFFF

temp.mainTemplate = TEMPLATE
temp.mainTemplate {
  template =< plugin.tx_automaketemplate_pi1
  workOnSubpart = DOCUMENT_BODY
  subparts.bg_color < color
}

and in html template:

<td bgcolor="###bg_color###">

This way with some if else structure in TS it's possible to change TD 
bgcolor for different pages.

Regards. 




More information about the TYPO3-english mailing list