[TYPO3] Problem with HMENU/GMENU_LAYERS and a different language

gunner gunner at internetsnedkeren.dk
Tue Mar 6 17:07:26 CET 2007


Hi,
I have made a GMENU_LAYERS like the one below. It works in danish but 
when switching to english the graphical output doesn't show up - the 
sourcecode shows that the english menuitems is made correctly and is 
sent to browser, but the graphical menu isn't rendered.

Anyone that can give me a hint to where to look ?

thanks
Gunner

config.linkVars = L
# set the default language: Danish
config{
   sys_language_mode = content_fallback
   sys_language_overlay = hideNonTranslated
   # linkVars = L
   language = dk
}
# Setting up english language
[globalVar = GP:L= 1]
config {
   sys_language_uid = 1
   language = en
   locale_all = english
}
[global]

lib.mainMenu = HMENU
lib.mainMenu.maxItems = 1
lib.mainMenu.1 = GMENU_LAYERS
lib.mainMenu.1 {
   relativeToTriggerItem = 1
   layerStyle = position:absolute;VISIBILITY:hidden;
   xPosOffset = -0
   expAll=1
   leftOffset = -4
   topOffset = 0
   directionUp = true
   freezeMouseover = 1
   hideMenuWhenNotOver = 9
   hideMenuTimer = 1
   #dontHideOnMouseUp = 1
}

lib.mainMenu.1.NO.wrap = <td width="122" height="30" valign="top">|</td>
lib.mainMenu.1.NO {
	XY = [10.w],[10.h]
	backColor = white
	10 = IMAGE
	10.file {
               // Getting images for menu from page headers media field:
            import = uploads/media/
            import.field = media
            import.listNum = 0
         }
}
lib.mainMenu.1.RO < lib.mainMenu.1.NO
lib.mainMenu.1.RO = 1
lib.mainMenu.1.RO {
	10.file.import.listNum = 0
}
lib.mainMenu.1.ACT < lib.mainMenu.1.RO
lib.mainMenu.1.ACT = 1

# Drop down design (defined in individual templates!)
lib.mainMenu.2 = TMENU

# Works # lib.mainMenu.2.wrap = <table cellspacing="0" cellpadding="4" 
bgcolor="#ffffff" border="0" width="130"> | </table>

lib.mainMenu.2.NO {
    ##allWrap =  <tr><td id="1tmenu{elementUid}" 
style="background:#ffffff;" >|</td></tr> |*| <tr><td 
id="1tmenu{elementUid}" style="background:#ffffff;paddin: 0 0 0 
0">|</td></tr> |*| <tr><td  style="1tmenu{elementUid};">|</td></tr>
    allWrap =  <tr><td id="1tmenu{elementUid}" 
style="background:#ffffff;" >|</td></tr> |*| <tr><td 
id="1tmenu{elementUid}" style="background:#ffffff;paddin: 0 0 0 
0">|</td></tr> |*| <tr><td id="1tmenu{elementUid}" 
style="background:#ffffff">|</td></tr>
    ATagParams = class="menu_forside" |*| class="menu_forside" |*| 
class="menu_forside"
    subst_elementUid = 1
    RO_chBgColor = #dcdcdc | #ffffff | 1tmenu
    RO = 1
}

lib.fp_menu1 < lib.mainMenu
lib.fpmenu1.special = list
lib.fpmenu1.special.value = 22
lib.fp_menu1.2.wrap (
       <table cellspacing="0" cellpadding="4" bgcolor="#ffffff" 
border="0" width="130"> |
       <tr><td   style="background:{$menu1_subpagecolor};" >
       <a 
class="menu_forside_nederst"onmouseout="changeBGcolor('1tmenu24','#ffffff');" 
onmouseover="changeBGcolor('1tmenu24','#dcdcdc');" 
onfocus="blurLink(this);"
       href="index.php?id={$menulink1}">Oversigt Nyheder</a>
       </td></tr>
       </table>
       )
lib.fp_menu1.2.maxItems = 8


lib.fpmenu2 < lib.mainMenu
lib.fpmenu2.special = list
lib.fpmenu2.special.value = 8
lib.fpmenu2.2.maxItems = 12
lib.fpmenu2.2.wrap (
       <table cellspacing="0" cellpadding="4" bgcolor="#ffffff" 
border="0" width="130"> |
       <tr><td   style="background:{$menu2_subpagecolor};" >
       <a 
class="menu_forside_nederst"onmouseout="changeBGcolor('1tmenu24','#ffffff');" 
onmouseover="changeBGcolor('1tmenu24','#dcdcdc');" 
onfocus="blurLink(this);"
       href="index.php?id={$menulink2}">Oversigt Om os</a>
       </td></tr>
       </table>
       )

lib.fpmenu3 < lib.fp_menu1
lib.fpmenu3.special = list
lib.fpmenu3.special.value = 7
lib.fpmenu3.maxItems = 1
lib.fpmenu3.2.maxItems = 8
lib.fpmenu3.2.wrap (
       <table cellspacing="0" cellpadding="4" bgcolor="#ffffff" 
border="0" width="130"> |
       <tr><td   style="background:{$menu3_subpagecolor};" >
       <a 
class="menu_forside_nederst"onmouseout="changeBGcolor('1tmenu24','#ffffff');" 
onmouseover="changeBGcolor('1tmenu24','#dcdcdc');" 
onfocus="blurLink(this);"
       href="index.php?id={$menulink3}">Oversigt Menigheder</a>
       </td></tr>
       </table>
       )

lib.fpmenu4 < lib.mainMenu
lib.fpmenu4.special = list
lib.fpmenu4.special.value = 6
lib.fpmenu4.2.maxItems = 8
lib.fpmenu4.2.wrap (
       <table cellspacing="0" cellpadding="4" bgcolor="#ffffff" 
border="0" width="130"> |
       <tr><td   style="background:{$menu4_subpagecolor};" >
       <a 
class="menu_forside_nederst"onmouseout="changeBGcolor('1tmenu24','#ffffff');" 
onmouseover="changeBGcolor('1tmenu24','#dcdcdc');" 
onfocus="blurLink(this);"
       href="index.php?id={$menulink4}">Oversigt Faellesopgaver</a>
       </td></tr>
       </table>
       )

lib.fpmenu5 < lib.mainMenu
lib.fpmenu5.special = list
lib.fpmenu5.special.value = 3
lib.fpmenu5.2.maxItems = 8
lib.fpmenu5.2.wrap (
       <table cellspacing="0" cellpadding="4" bgcolor="#ffffff" 
border="0" width="130"> |
       <tr><td   style="background:{$menu4_subpagecolor};" >
       <a 
class="menu_forside_nederst"onmouseout="changeBGcolor('1tmenu24','#ffffff');" 
onmouseover="changeBGcolor('1tmenu24','#dcdcdc');" 
onfocus="blurLink(this);"
       href="index.php?id={$menulink5}">Oversigt Int Mission</a>
       </td></tr>
       </table>
       )


More information about the TYPO3-english mailing list