Re: [TYPO3-english] GIFBUILDER headings change on different content-element layout

2011-02-24 Thread Enrique Moreno Tent
Ok! I got it! for the black heading to appear, I have to call it "1", not
"default"!

Thank you!

On Thu, Feb 24, 2011 at 1:30 PM, Enrique Moreno Tent <
enriquemorenot...@gmail.com> wrote:

> True, that makes the white boxes have black headings, but now the green
> ones
> have a normal non-GIFBUILDER heading...
>
> On Thu, Feb 24, 2011 at 12:52 PM, Tomas Mrozek  wrote:
>
> > Right, I see another mistake in the code. Try:
> >
> > lib.stdheader.10 = CASE
> > lib.stdheader.10 {
> >  key.field = header_layout
> >
> >  default = IMAGE
> >   default {
> > titleText.field = header
> >altText.field = header
> > file = GIFBUILDER
> >file {
> >XY = [10.w]+5,[10.h]+10
> >backColor = #EAEAEA
> >10 = TEXT
> >10{
> >text.field = header
> >offset = -2,20
> >align = center
> >niceText = 1
> >fontColor = #ff
> >fontFile = fileadmin/templates/web/fonts/ClanOT-Medium.otf
> >fontSize = 18
> >}
> >format = png
> >backColor = #aec924
> >transparentBackground = 1
> >transparentColor = #aec924
> >transparentColor.closest=1
> >}
> >  }
> >
> >  2 < .default
> >  2.file.10.fontColor = #00
> > }
> >
> > Tomas Mrozek
> >
> > ___
> > TYPO3-english mailing list
> > TYPO3-english@lists.typo3.org
> > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> >
> ___
> TYPO3-english mailing list
> TYPO3-english@lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] GIFBUILDER headings change on different content-element layout

2011-02-24 Thread Tomas Mrozek
I didn't give you the whole Typoscript. I gave you something to start
with and I told you to look at how CASE works.

I'm not your hired coder. You will have to tweak it yourself. If you
take a look at the code you will see that only "default" and "2" (=
black) is defined. Simply add the other color versions.

Tomas Mrozek
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] GIFBUILDER headings change on different content-element layout

2011-02-24 Thread Enrique Moreno Tent
True, that makes the white boxes have black headings, but now the green ones
have a normal non-GIFBUILDER heading...

On Thu, Feb 24, 2011 at 12:52 PM, Tomas Mrozek  wrote:

> Right, I see another mistake in the code. Try:
>
> lib.stdheader.10 = CASE
> lib.stdheader.10 {
>  key.field = header_layout
>
>  default = IMAGE
>   default {
> titleText.field = header
>altText.field = header
> file = GIFBUILDER
>file {
>XY = [10.w]+5,[10.h]+10
>backColor = #EAEAEA
>10 = TEXT
>10{
>text.field = header
>offset = -2,20
>align = center
>niceText = 1
>fontColor = #ff
>fontFile = fileadmin/templates/web/fonts/ClanOT-Medium.otf
>fontSize = 18
>}
>format = png
>backColor = #aec924
>transparentBackground = 1
>transparentColor = #aec924
>transparentColor.closest=1
>}
>  }
>
>  2 < .default
>  2.file.10.fontColor = #00
> }
>
> Tomas Mrozek
>
> ___
> TYPO3-english mailing list
> TYPO3-english@lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] GIFBUILDER headings change on different content-element layout

2011-02-24 Thread Tomas Mrozek
Right, I see another mistake in the code. Try:

lib.stdheader.10 = CASE
lib.stdheader.10 {
  key.field = header_layout

  default = IMAGE
  default {
titleText.field = header
altText.field = header
file = GIFBUILDER
file {
XY = [10.w]+5,[10.h]+10
backColor = #EAEAEA
10 = TEXT
10{
text.field = header
offset = -2,20
align = center
niceText = 1
fontColor = #ff
fontFile = fileadmin/templates/web/fonts/ClanOT-Medium.otf
fontSize = 18
}
format = png
backColor = #aec924
transparentBackground = 1
transparentColor = #aec924
transparentColor.closest=1
}
  }

  2 < .default
  2.file.10.fontColor = #00
}

Tomas Mrozek

___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] GIFBUILDER headings change on different content-element layout

2011-02-24 Thread Tomas Mrozek
You mean the switching doesn't work or even the default version is not
rendered.

Tomas Mrozek
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] GIFBUILDER headings change on different content-element layout

2011-02-24 Thread Enrique Moreno Tent
None of it seems to be working... Its like I cant call CASE on
lib.stdheader.10 :S

On Thu, Feb 24, 2011 at 11:52 AM, Tomas Mrozek  wrote:

> Oops. It should be:
>
> lib.stdheader.10 = CASE
> lib.stdheader.10 {
>  key.field = header_layout
>
>  default = IMAGE
>titleText.field = header
>altText.field = header
>fontTag >
>file = GIFBUILDER
>file {
>XY = [10.w]+5,[10.h]+10
>backColor = #EAEAEA
>10 = TEXT
>10{
>text.field = header
>offset = -2,20
>align = center
>niceText = 1
>fontColor = #ff
>fontFile = fileadmin/templates/web/fonts/ClanOT-Medium.otf
>fontSize = 18
>}
>format = png
>backColor = #aec924
>transparentBackground = 1
>transparentColor = #aec924
>transparentColor.closest=1
>}
>  }
>
>   2 < .default
>   2.file.10.fontColor = #00
> }
>
> Tomas Mrozek
> ___
> TYPO3-english mailing list
> TYPO3-english@lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] GIFBUILDER headings change on different content-element layout

2011-02-24 Thread Tomas Mrozek
Oops. It should be:

lib.stdheader.10 = CASE
lib.stdheader.10 {
  key.field = header_layout

  default = IMAGE
titleText.field = header
altText.field = header
fontTag >
file = GIFBUILDER
file {
XY = [10.w]+5,[10.h]+10
backColor = #EAEAEA
10 = TEXT
10{
text.field = header
offset = -2,20
align = center
niceText = 1
fontColor = #ff
fontFile = fileadmin/templates/web/fonts/ClanOT-Medium.otf
fontSize = 18
}
format = png
backColor = #aec924
transparentBackground = 1
transparentColor = #aec924
transparentColor.closest=1
}
  }

  2 < .default
  2.file.10.fontColor = #00
}

Tomas Mrozek
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


Re: [TYPO3-english] GIFBUILDER headings change on different content-element layout

2011-02-24 Thread Tomas Mrozek
Use CASE (1). In TYPO3 4.5.x you might be able to use it on "fontColor".
If not, you can still use it on the whole "lib.stdheader.10".

Try something like this (not tested):

lib.stdheader.10 = CASE
lib.stdheader.10 {
  key.field = header_layout

  default = IMAGE
titleText.field = header
altText.field = header
fontTag >
file = GIFBUILDER
file {
XY = [10.w]+5,[10.h]+10
backColor = #EAEAEA
10 = TEXT
10{
text.field = header
offset = -2,20
align = center
niceText = 1
fontColor = #ff
fontFile = fileadmin/templates/web/fonts/ClanOT-Medium.otf
fontSize = 18
}
format = png
backColor = #aec924
transparentBackground = 1
transparentColor = #aec924
transparentColor.closest=1
}
  }

  black < .default
  black.file.10.fontColor = #00
}

Tomas Mrozek
--
[1]
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.3.2/view/1/7/#id2524000
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] GIFBUILDER headings change on different content-element layout

2011-02-24 Thread Enrique Moreno Tent
Hello guys. Im writing my headings with GIFBUILDER like this, so they look
nice and white:

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

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

But now I've gone and defined a new  content-element layout, whitebox:

TCEFORM.tt_content.header_layout{
altLabels {
  2 = white Box
  1 = green Box
  0 = Normal
}
}

and I want the Heading to have a black color, when the layout is white
box How can I do this? :S
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english