[TYPO3] GEMENU hide level 1 NO
Bas van der Togt
b.vandertogt at profinit.com
Thu Mar 23 17:16:20 CET 2006
Thanks Joey!
It's working but now my ACT state is not working anymore.
This is my code:
# Menu Left Level 1
temp.MenuLeft = HMENU
temp.MenuLeft.entryLevel = 0
temp.MenuLeft.1 = GMENU
temp.MenuLeft.1.NO {
allStdWrap.cObject = TEXT
}
#temp.MenuLeft.1.NO {
# wrap = <table border="0" cellspacing="0"
cellpadding="0"><tr><td>|</td></tr><tr><td bgcolor="#FFFFFF"
height="1"></td></tr></table>
# XY = 183,20
# backColor = #B0B1B3
# 10 = TEXT
# 10.text.field = title
# 10.fontColor = #FFFFFF
# 10.fontFile = t3lib/fonts/ITCAvantGardeStd-Md.otf
# 10.niceText = 1
# 10.offset = 10,15
# 10.fontSize = 10
#}
# Menu Left Level 1
temp.MenuLeft.1.ACT < temp.MenuLeft.1.NO
temp.MenuLeft.1.ACT = 1
temp.MenuLeft.1.ACT {
allWrap = |*| <div id="orgmenu">|</div> || <div id="prodmenu">|</div>
|| <div id="dienstmenu">|</div> || <div id="marktmenu">|</div> || <div
id="contmenu">|</div> |*|
wrap = <table border="0" cellspacing="0"
cellpadding="0"><tr><td>|</td></tr><tr><td bgcolor="#FFFFFF"
height="1"></td></tr></table>
XY = 183,20
backColor = |*| #BED600 || #A2AD00 || #878800 || #5B8F22 || #7AB800 |*|
10 = TEXT
10.text.field = title
10.fontColor = #FFFFFF
10.fontFile = t3lib/fonts/ITCAvantGardeStd-Demi.otf
10.niceText = 1
10.offset = 10,15
10.fontSize = 10
}
# Menu Left Level 2
temp.MenuLeft.2 = GMENU
temp.MenuLeft.2.NO {
wrap = <table border="0" cellspacing="0"
cellpadding="0"><tr><td>|</td></tr><tr><td bgcolor="#FFFFFF"
height="1"></td></tr></table>
XY = 183,20
backColor = #B8B8B8
10 = TEXT
10.text.field = title
10.fontColor = #FFFFFF
10.fontFile = t3lib/fonts/ITCAvantGardeStd-Md.otf
10.niceText = 1
10.offset = 10,15
10.fontSize = 10
}
# Menu Left Level 2
temp.MenuLeft.2 = GMENU
temp.MenuLeft.2.IFSUB = 1
temp.MenuLeft.2.IFSUB < temp.MENU_RIGHT.2.NO
temp.MenuLeft.2.IFSUB {
wrap = <table border="0" cellspacing="0"
cellpadding="0"><tr><td>|</td></tr><tr><td bgcolor="#FFFFFF"
height="1"></td></tr></table>
XY = 183,20
backColor = #B8B8B8
10 = TEXT
10.text.field = title
10.fontColor = #FFFFFF
10.fontFile = t3lib/fonts/ITCAvantGardeStd-Md.otf
10.niceText = 1
10.offset = 10,15
10.fontSize = 10
20 = IMAGE
20.file = fileadmin/templates/images/arrow.gif
20.offset = 160,1
}
# Menu Left Level 2
temp.MenuLeft.2 = GMENU
temp.MenuLeft.2.ACTIFSUB = 1
temp.MenuLeft.2.ACTIFSUB < temp.MENU_RIGHT.2.NO
temp.MenuLeft.2.ACTIFSUB {
wrap = <table border="0" cellspacing="0" cellpadding="0"><tr><td
colspan="2">|</td></tr><tr><td bgcolor="#960F07" height="1"
width="4"><td bgcolor="#FFFFFF" height="1" width="179"></td></tr></table>
XY = 183,20
backColor = #960F07
10 = TEXT
10.text.field = title
10.fontColor = #FFFFFF
10.fontFile = t3lib/fonts/ITCAvantGardeStd-Md.otf
10.niceText = 1
10.offset = 10,15
10.fontSize = 10
}
# Menu Left Level 2
temp.MenuLeft.2 = GMENU
temp.MenuLeft.2.ACT = 1
temp.MenuLeft.2.ACT < temp.MENU_RIGHT.2.NO
temp.MenuLeft.2.ACT {
wrap = <table border="0" cellspacing="0"
cellpadding="0"><tr><td>|</td></tr><tr><td bgcolor="#FFFFFF"
height="1"></td></tr></table>
XY = 183,20
backColor = #960F07
5 = BOX
5.dimensions = 0,0,4,20
5.color = #960F07
10 = TEXT
10.text.field = title
10.fontColor = #FFFFFF
10.fontFile = t3lib/fonts/ITCAvantGardeStd-Md.otf
10.niceText = 1
10.offset = 10,15
10.fontSize = 10
}
# Menu Left Level 3
temp.MenuLeft.3 = GMENU
temp.MenuLeft.3.NO {
wrap = |*|<table border="0" cellspacing="0" cellpadding="0"><tr><td
colspan="2">|</td></tr><tr><td bgcolor="#960F07" height="1"
width="4"><td bgcolor="#FFFFFF" height="1"
width="179"></td></tr></table>|*|<table border="0" cellspacing="0"
cellpadding="0"><tr><td>|</td></tr><tr><td bgcolor="#FFFFFF"
height="1"></td></tr></table>
XY = 183,20
backColor = #9A9A9A
5 = BOX
5.dimensions = 0,0,4,20
5.color = #960F07
10 = TEXT
10.text.field = title
10.fontColor = #FFFFFF
10.fontFile = t3lib/fonts/ITCAvantGardeStd-Md.otf
10.niceText = 1
10.offset = 10,15
10.fontSize = 10
}
# Menu Left Level 3
temp.MenuLeft.3 = GMENU
temp.MenuLeft.3.ACT = 1
temp.MenuLeft.3.ACT < temp.MENU_RIGHT.3.NO
temp.MenuLeft.3.ACT {
wrap = |*|<table border="0" cellspacing="0" cellpadding="0"><tr><td
colspan="2">|</td></tr><tr><td bgcolor="#960F07" height="1"
width="4"><td bgcolor="#FFFFFF" height="1"
width="179"></td></tr></table>|*|<table border="0" cellspacing="0"
cellpadding="0"><tr><td>|</td></tr><tr><td bgcolor="#FFFFFF"
height="1"></td></tr></table>
XY = 183,20
backColor = #E60F0A
5 = BOX
5.dimensions = 0,0,4,20
5.color = #960F07
10 = TEXT
10.text.field = title
10.fontColor = #FFFFFF
10.fontFile = t3lib/fonts/ITCAvantGardeStd-Md.otf
10.niceText = 1
10.offset = 10,15
10.fontSize = 10
}
JoH schreef:
> Tapio Markula wrote:
>
>>JoH wrote:
>>
>>>>How can i hide the first level menu in the NO avtivity?
>>>>I only want to show the item in the ACT activity in level 1.
>>>>This is my code:
>>>
>>>
>>>What do you want to acchieve by disabling the NO state?
>>
>>Presumably see only one page (act or cur) second level and
>>submenu for that if that exists.
>>
>>NO.doNotLinkIt=1
>>NO.doNotShowLink=1
>>
>>ACT=1
>>...
>
>
> Try this one:
>
> NO {
> allStdWrap.cObject = TEXT
> }
>
> Should override the whole entry with an empty value.
>
> Joey
>
More information about the TYPO3-english
mailing list