DEPRECATION WARNING
This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.
EXT: Multi-color menu¶
Created: | 2003-10-21T14:17:49 |
---|---|
Changed: | 2003-10-23T11:11:00 |
Classification: | Typo3 Extension Documentaion |
Author: | Tim D'Hooge |
Company: | |
Email: | typo3@nephie.org |
Homepage: |
EXT: Multi-color menu¶
Extension Key: gsi_wizard_crform
Copyright 2003, Tim D'Hooge, <typo3@nephie.org>
This document is published under the Open Content License
available from http://www.opencontent.org/opl.shtml
The content of this document is related to TYPO3
- a GNU/GPL CMS/Framework available from www.typo3.com
Table of Contents¶
EXT: Multi-color menu 1
Introduction 1
What does it do? 1
Users manual 1
Adminstration 1
Configuration 1
Known problems 1
Introduction¶
What does it do?¶
The extension adds the fields outcolor, overcolor and actcolor to the page header. These values can than be used within a TMENU to create link-specific roll-over - or active – effects.
Users manual¶
Just place {outColor}, {overColor}, {actColor} where you want to use it in the TMENU and add replace_outColor = 1 or over- or act- Color (or combinations) to the TMENU to have it replaced. If a page hasn't specified a color, a lookup through the rootline will occur until one is found.
The added fields are also added into the rootline, so you can get them with fullRootLine to benefit from the “slide” functionality.
The field names are tx_nmcmenu_outcolor, tx_nmcmenu_overcolor and tx_nmcmenu_actcolor.
IMPORTANT: The “replace_...” directives must be declared for the TMENU object itself, NOT for it's NO or RO or ACT states.
Here is an example of a menu using this functionality:
# TopMenu cObject
temp.topMenu = HMENU
# First level menu-object, textual
temp.topMenu.1 = TMENU
temp.topMenu.1 {
replace_overColor = 1
replace_outColor = 1
replace_actColor = 1
# Normal state properties
NO {
allWrap = <td class="topMenu" id="topMenu{elementUid}" style="background-color: {outColor};"> | </td>
subst_elementUid = 1
RO = 1
RO_chBgColor = {overColor} | {outColor} | topMenu
}
# Enable active state and set properties:
ACT = 1
ACT {
allWrap = <td class="topMenu" style="background-color: {actColor};"> | </td>
ACT = 1
}
}
And here is an example of it being used somewhere within a page
subparts.sideTitle = TEXT
subparts.sideTitle {
data = leveltitle: -2
dataWrap = <td class="sideTitle" style="background-color: {fullRootLine:2,tx_nmcmenu_actcolor,slide} ;"> | </td>
}
Adminstration¶
No administration needed, just install the extension.
Configuration¶
Nothing to configure.