[TYPO3] Select a color according to the active level 1 menu item

Peter Klein peter at umloud.dk
Wed Feb 15 18:23:43 CET 2006

Hi Joerg. I made a similar setup a while back, using the extension 
"Multi-color menu" (ExtKey:  n_mcmenu)

Using that you can specify colors in the pageheader of each page.
You then create some typoscript code to extract the color information and 
place it where you need it..

Peter Klein / Umloud Untd

"Joerg Wagner - DigiLog multimedia" <usenet at digilog.de> wrote in message 
news:mailman.1.1140021955.3834.typo3-english at lists.netfielders.de...
> Hi all!
> I want to adjust colors of parts of the page according to the top menu 
> item that is currently selected.
> In other words:
> The site has say 5 menu topics on level 1 and the content of all pages 
> should be colored according to the level 1 menu topic that is currently 
> selected (even if a subpage of it is selected). A kind of color scheme for 
> basic website categories.
> I am chewing on TSref for hours now, but haven't even got a clue, what the 
> right approach for this problem is.
> I would have to get an ordinal numbering of the top menu items and then 
> determine which number the currently active top menu item has.
> Then I could select a color (I have defined them in TS Constants) 
> according to this number.
> Any help is welcome - even if it is only hints which approach to take.
> Many thanks!
> --
> Jörg Wagner
> DigiLog multimedia

More information about the TYPO3-english mailing list