[TYPO3] Select a color according to the active level 1 menu item
headhunterxiii at yahoo.ca
Wed Feb 15 18:25:10 CET 2006
assuming that the menu is a list of sections of the site perhaps use
css and put it into the head on the page according to what branch of the
page you need
Joerg Wagner - DigiLog multimedia wrote:
> 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