[TYPO3] GEMENU hide level 1 NO
Joerg Wagner
jwagner at digilog.de
Fri Mar 24 06:53:42 CET 2006
Bas,
> thanks for your reply, but it does not work.
> do you have an other solution?
You gave up too easily.
You're correct that solution 1 and 2 don't work as TS does not render ACT if
NO is not active. I was not aware of that.
But solution 3 works perfectly. Here is a tested example for a 3 level menu:
# ------------------------------
page.70 = HMENU
page.70.1 = GMENU
page.70.1{
NO{
allStdWrap.if.value = 1
allStdWrap.if.equals = 2
}
ACT = 1
ACT{
allWrap = |<br>
XY = 165,[10.h]+10
backColor = #C00000
# transparentBackground = 1
10 = TEXT
10{
text.field = title
text.case = upper
fontFile = fileadmin/fonts/LRTWREGU.TTF
fontSize = 12
fontColor = #0000FF
maxWidth = 163
niceText = 0
offset = 3,16
align = left
}
}
}
page.70.2 < page.70.1
page.70.2.ACT.10.offset = 13,16
page.70.3 < page.70.1
page.70.2.ACT.10.offset = 23,16
# ------------------------------
"Bas van der Togt" <b.vandertogt at profinit.com> schrieb im Newsbeitrag
news:mailman.1.1143120727.29879.typo3-english at lists.netfielders.de...
> thanks for your reply, but it does not work.
> do you have an other solution?
>
> Bas
>
> Joerg Wagner schreef:
>> I would think of three ways (all untested):
>> 1. NO >
>> 2. NO = 0
>> 3. NO.stdWrap.if{
>> (condition that is always false)
>> }
>>
>> I am sure there are many other ways.
>>
>> --
>> Jörg Wagner
>> DigiLog multimedia
>>
>>
>> "Bas van der Togt" <b.vandertogt at profinit.com> schrieb im Newsbeitrag
>> news:mailman.1.1143116301.17313.typo3-english at lists.netfielders.de...
>>
>>>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:
>>>
>>># Menu Left Level 1
>>>temp.MenuLeft = HMENU
>>>temp.MenuLeft.entryLevel = 0
>>>temp.MenuLeft.1 = GMENU
>>>temp.MenuLeft.1.NO {
>>> wrap = <table border="0" cellspacing="0" cellpadding="0"><tr
>>> height="0"><td>|</td></tr><tr height="0"><td bgcolor="#FFFFFF"
>>> height="1"></td></tr></table>
>>> XY = 183,0
>>> backColor = #B0B1B3
>>> 10 = TEXT
>>> 10.text.field = title
>>> 10.fontColor = #FFFFFF
>>> 10.fontFile = t3lib/fonts/verdana.ttf
>>> 10.niceText = 0
>>> 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/verdana.ttf
>>> 10.niceText = 0
>>> 10.offset = 10,15
>>> 10.fontSize = 10
>>>}
>>
>>
More information about the TYPO3-english
mailing list