[TYPO3] HMENU with individual colors

Ralph Brugger news.netfielders.de at public.linkpool.de
Tue Mar 14 09:53:26 CET 2006


Hi,

I'm working on an GMENU_LAYERS.

The fontColor og the menu items should depend on the column in the menu.
I have an horizontally orientated menu.

RED:  Menu 1
RED:     Menu 1.1
RED:     Menu 1.2

GREEN: Menu 2
GREEN:   Menu 2.1
GREEN:   Menu 2.2

BLUE:  Menu 3
BLUE:     Menu 3.2
BLUE:     Menu 3.3

I've tried optionSplit. This works fot the first level.
LEVEL1.NO.10.fontColor = #red|| #green|| #blue

The colors will be set for the first menu level in the right matter.

But this won't work for the second level.

LEVEL2.NO.10.fontColor = #red|| #green|| #blue

The result would be:
RED:  Menu 1
RED:     Menu 1.1
GREEN:   Menu 1.2

GREEN: Menu 2
RED:     Menu 2.1
GREEN:   Menu 2.2

BLUE:  Menu 3
RED:     Menu 3.2
GREEN:   Menu 3.3


The colors should be set for the second level in dependence of the first
level. I can't find a way to do that. The menu items in the second level
should habe the same color as their parents.

Any Idea?

Ralph



More information about the TYPO3-english mailing list