[TYPO3-english] Part of image as background in GMENU

Søren Malling soren.malling at gmail.com
Mon Aug 10 17:49:58 CEST 2009


Hi Loek,

Thanks for your code.

I got it working with applyTotalW and distributeX - i will post my
full code tomorrow for anybody else interested :)

Regards,

Søren

On 8/10/09, Loek Hilgersom <hilgersom at xs4all.nl> wrote:
> Hi Søren,
>
> One way to do that is by using the files/media field in the page properties
> of
> the pages that are displayed in the GMENU. In your GMENU typoscript you add
> something like this:
>
> lib.nav.1 = GMENU
> lib.nav.1 {
>    wrap = <ul>|</ul>
>    NO {
>      wrap = <li>|</li>
>      XY = 140,26
>      10 = IMAGE
>      10 {
>        file.import = uploads/media/
>        file.import.field = media
>        file.import.listNum = 1
>      }
>      20 = TEXT
>      20 {
>        text.field = title
>        fontFile = fileadmin/verdana.ttf
>        fontColor = #c00022
>        fontSize = 17
>        offset = 0,18
>        align = center
>        niceText = 1
>      }
>    }
> }
>
> I haven't tested, but something like this should show your background images
> taken from the page properties of those pages, with the menu item text
> printed
> on top.
>
> Hth,
> Loek
>
>
> Søren Malling wrote:
>> Hi,
>>
>> I'm having the GMENU in a with some text placed on a
>> transparentbackground. Unfortunately, the text isn't always nice
>> looking, you can see the color of the transparentBackground
>> configuration on the text written.
>>
>> At the moment the <div> containing the GMENU is having a background
>> image defined by the CSS but i was wondering if it's possible to cut
>> the background image and place the generated pieces as a part of the
>> GMENU, but how do i define, what image file to use for each GMENU
>> item?
>>
>> Regards,
>>
>> Søren
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list