[TYPO3] Transparent GIF in GMENU
Christian Vetter
Christian.Vetter at dragoner-design.de
Sun Apr 2 07:26:02 CEST 2006
Hi Scott,
Have you checked the path to the font file, including letter case ? I had
two or three occasions when this was my only mistake. Also you should set
your offset to positive values - right now you have 0,-5 because there is
no element with the index 4. Why do you use the field property ? Since
it's a menu it gets it's values automatically, doesn't it ? And with the
title field it should fetch the title of the current page - I gues that's
not what you want.
By the way, you should be aware that gif does not support alpha
transparency - that is no anti aliasing in the transparency. Therefore you
should also switch format to png, if your version of Typo3 supports PNG -
I think it was introduced in a 4.0 beta.
You're welcome,
Christian
Am 02.04.2006, 00:55 Uhr, schrieb Scotty C <superscotty19 at yahoo.com>:
> Hey Christian,
>
> Thanks for the speedy reply! Unfortunately, that
> doesn't do it either. Here's what I've got:
>
> subparts.MENU = HMENU
> subparts.MENU.1 = GMENU
> subparts.MENU.1.NO {
> XY = [10.w]+20,29
> transparentBackground = 1
>
> 10 = TEXT
> 10 {
> text.field = title
> fontSize = 12
> offset = 0,[4.h]-5
> align = center
> fontColor = black
> fontFile = fileadmin/fonts/BNKGOTHM.TTF
> antiAlias = 1
> }
> }
>
> The result is, the entire menu is blank (transparent I
> guess?). What am I doing wrong?
>
> Thanks again,
> -Scott.
More information about the TYPO3-english
mailing list