[TYPO3-english] Customize content types

Enrique Moreno Tent enriquemorenotent at gmail.com
Thu Feb 24 11:47:10 CET 2011


Ok, that worked beautifully. Thanks. I do this:

But now I have a problem. Im using GIFBUILDER to make headings with a
special font. But I want the heading to have a different color in different
content-types. This is what I was doing so far:

lib.stdheader.10 = IMAGE
lib.stdheader.10.titleText.field = header
lib.stdheader.10.altText.field = header
lib.stdheader.10.wrap = <span class="imhead">|</span>
lib.stdheader.10.fontTag >
lib.stdheader.10.file = GIFBUILDER
lib.stdheader.10.file {
    XY = [10.w]+5,[10.h]+10
    backColor = #EAEAEA
    10 = TEXT
    10{
        text.field = header
        offset = -2,20
        align = center
        niceText = 1
        fontColor = #ffffff
        fontFile = fileadmin/templates/web/fonts/ClanOT-Medium.otf
        fontSize = 18

    }
    format = png
    backColor = #aec924
    transparentBackground = 1
    transparentColor = #aec924
    transparentColor.closest=1
}

How can i change the fontColor to a different one if the style is different?

On Thu, Feb 24, 2011 at 10:20 AM, dave wong <frontleft at gmail.com> wrote:

> Hi Enrique,
>
> here's a good example of what you are trying to do found at TYPO3 Wizard.
>
>
> http://www.typo3wizard.com/en/snippets/cool-stuff-typoscript/using-the-layout-field-in-tt-content-and-pages.html
>
> <
> http://www.typo3wizard.com/en/snippets/cool-stuff-typoscript/using-the-layout-field-in-tt-content-and-pages.html
> >Sorry
> don't have time to explain further.
>
> Regards, David.
>
> On Thu, Feb 24, 2011 at 5:03 PM, Enrique Moreno Tent <
> enriquemorenotent at gmail.com> wrote:
>
> > Hey guys. I've created some content-element types with this code:
> >
> > TCEFORM.tt_content.header_layout{
> >    altLabels {
> >      2 = white Box
> >      1 = green Box
> >      0 = Normal
> >    }
> > }
> >
> > And now I would like to wrap some <div class="white-box"> and so around
> > them, depending on their type. How can i do this?
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.typo3.org
> > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> >
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list