[Typo3] GMENU with arrow on items with subpages

Lars Houmark lars at houmark.com
Tue Mar 29 14:32:16 CEST 2005


Hi Peter,

Here's the complete code. I removed som uncommmented code I've had no 
success with, but this should be as it runs at the moment, with the 2 
problems, 1. No mouseovercolor change on items with arrows. 2. No arrow on 
the current page with subpages.

--- cut ---

temp.menu_1 >
temp.menu_1 = HMENU
temp.menu_1.1 = GMENU_LAYERS
temp.menu_1.1.expAll=1
temp.menu_1.1.wrap = <table border="0" cellpadding="0" 
cellspacing="0"><tr>|</tr></table>

temp.menu_1.1.NO.wrap = <td>|</td>
temp.menu_1.1 {
  leftOffset = 0
  topOffset = 0
  relativeToTriggerItem = 1
  relativeToTriggerItem.addHeight = 1
  hideMenuWhenNotOver = 50
  hideMenuTimer = 300
}


temp.menu_1.1.NO {
  transparentBackground = 1
  backColor = #086A07
  XY = [10.w]+{$menuspacer}, 25
  10 = TEXT
  10.text.case = upper
  10.text.field = title
  10.align = center
  10.fontFile = fileadmin/template/main/fonts/verdana.ttf
  10.fontSize = 10px
  10.fontColor = #FFFFFF
  10.offset = 0,16
}

temp.menu_1.1.RO < temp.menu_1.1.NO
temp.menu_1.1.RO=1
temp.menu_1.1.RO.transparentBackground = 1
temp.menu_1.1.RO.backColor = #086A07
temp.menu_1.1.RO.10.fontColor = #FFFFFF
#temp.menu_1.1.RO.XY = 150, 21

temp.menu_1.1.ACT < temp.menu_1.1.RO
temp.menu_1.1.ACT = 1
temp.menu_1.1.ACT.transparentBackground = 1
temp.menu_1.1.ACT.backColor = #086A07
temp.menu_1.1.ACT.10.fontColor = #FFFF00


##########   menu niveau 2   #####################
temp.menu_1.2 = GMENU_LAYERS
temp.menu_1.2.useLargestItemX = 1
temp.menu_1.2.expAll = 1

temp.menu_1.2 {
  lockPosition = y
  yPosOffset = -2
  leftOffset = 0
  blankStrEqFalse=1
  #displayActiveOnLoad = 1
  hideMenuWhenNotOver = 50
  hideMenuTimer = 300
  relativeToParentLayer = 1
  relativeToParentLayer.addWidth=1
}

temp.menu_1.2.NO {
  wrap = | <br />
  backColor = #086A07
  XY = [10.w]+21, 24

  10 = TEXT
  10.text.field = title
  10.offset = 8,16
  10.fontFile = t3lib/fonts/vera.ttf
  10.fontSize = 11px
  10.fontColor = #FFFFFF

  20 = BOX
  20.dimensions = 0,0,1,100
  20.color = #FFFFFF

  21 < .20
  21.align = r

  22 = BOX ||
  22.dimensions = 0,0,500,1
  22.color = #FFFFFF

  23 = |*||*|    || BOX
  23.dimensions = 0,0,500,1
  23.color = #FFFFFF
  23.align = ,b

  24 = BOX
  24.dimensions = 0,0,500,1
  24.color = #FFFFFF

}

temp.menu_1.2.IFSUB < temp.menu_1.2.NO
temp.menu_1.2.IFSUB = 1
temp.menu_1.2.IFSUB {
  13 = IMAGE
  13.file = fileadmin/template/main/images/menu-arrow.gif
  13.tile = 1
  13.align = r,c
  13.width = 3
  13.offset = -4
}

temp.menu_1.2.RO < temp.menu_1.2.NO
temp.menu_1.2.RO = 1
temp.menu_1.2.RO {
  backColor = #014001
}

temp.menu_1.2.ACT < temp.menu_1.2.RO
temp.menu_1.2.ACT = 1

temp.menu_1.3 < temp.menu_1.2
temp.menu_1.4 < temp.menu_1.3

--- cut ---


Regards in advance,


Lars Houmark


"Peter Klein" <peter at umloud.dk> wrote in message 
news:mailman.1.1112095110.13128.typo3-english at lists.netfielders.de...
> "Lars Houmark" <lars at houmark.com> skrev i en meddelelse 
> news:mailman.1.1112043166.7920.typo3-english at lists.netfielders.de...
>> Hey list,
>>
>> I am trying to create a GMENU_LAYERS menu with an integrated arrow in the 
>> item if it has subpages.
>>
>> Actually, I feel I am VERY close on succeeding, and again very far away, 
>> as I afraid that it's is not possible with the GMENU.
>>
>> Here's some code, I'm only pasting the code doing the arrow, as the rest 
>> of the menu is very much regular.
>>
>>
>> --- cut ---
>>
>> temp.menu_1.2.IFSUB < temp.menu_1.2.NO
>> temp.menu_1.2.IFSUB = 1
>> temp.menu_1.2.IFSUB {
>>  13 = IMAGE
>>  13.file = fileadmin/template/main/images/menu-arrow.gif
>>  13.tile = 1
>>  13.align = r,c
>>  13.width = 3
>>  13.offset = -4
>> }
>>
>> --- cut ---
>>
>
> Hi Lars. Try posting the complete code for your menu.. As I need to see 
> what code you got in the "temp.menu_1.2.NO" part..
>
> ---
> MvH Peter Klein / Umloud Untd
> 





More information about the TYPO3-english mailing list