[TYPO3-templavoila] Two fieldnames wrap TV/FCE

Michiel Zoer burn_yourself at hotmail.com
Thu Apr 12 09:57:50 CEST 2007


Thanks for reading...

I have a simple problem (for the advanced Typo3 gurus).

Within my TV (FCE) datastructure I map the 'style=' attribute of a <DIV 
style=""> container with the following TS:
(where field_container is een colorpicker color-value). So good so far. The 
DIV is rendered correctly <DIV style="background-color:#cccccc;">...</DIV>

     <TypoScript>
    renderObj = COA
    renderObj {
      10 = TEXT
      10.field = field_containerColor
      10.wrap = background-color:|;
      }
     </TypoScript>

How can I add a second style property like 'color=' like what I'm trying 
below (which doesn't work).
<DIV style="background-color:#cccccc; color:#ffffff;">..</DIV>

Thanks!

     <TypoScript>
    renderObj = COA
    renderObj {
      10 = TEXT
      10.field = field_containerColor
      10.wrap = background-color:|;
      20 = TEXT
      20.field = field_containerColor
      20.wrap = color:|;
      }
     </TypoScript> 



More information about the TYPO3-project-templavoila mailing list