[Typo3] gmenu_layers problem

raluca oprean raluca at sds.ro
Thu Feb 10 09:35:26 CET 2005


Hi list

I've constructed a template from a *.html file and I am working=  with subparts. I've constructed a separate template for menu from=  an example I found in documentation. It looks like this:



page.includeLibs.gmenu_layers = fileadmin/website/gmenu_layers.php

temp.popupMenu >

temp.popupMenu = HMENU

temp.popupMenu.1 = GMENU_LAYERS

temp.popupMenu.1 {

 layerStyle=position: absolute; left: 0px; top: 30px; width: 10px;=
 VISIBILITY: hidden;

 expAll = 1

 dontFollowMouse = 1

 lockPosition = x

 relativeToParentLayer = 1

# xPosOffset = -10

}

temp.popupMenu.1.NO{

 backColor = #BFE0D9

 4 = IMAGE

 4.file = fileadmin/website/menu.gif

 XY = [10.w]+10, 14

 10 = TEXT

 10 {

  text.field = title 

  fontSize = 10

  fontColor = #333333

  niceText = 1

  offset = 5, 10

 }

}





temp.popupMenu.2 = GMENU

temp.popupMenu.2.wrap = |<br>

temp.popupMenu.2.NO {

 lockPosition = y

 relativeToParentLayer = 1

 relativeToParentLayer.addWidth = 1

 backColor = #BFE0D9

 XY=140, 14

 10=TEXT

 10 {

  text.field = title

  fontSize = 10

  fontColor = #333333

  niceText = 1

  offset = 5, 10

 }

 dontFollowMouse = 1

}



The menu is positioned in the main template somewhere in the middle=  (not left and top like all the ones from the examples are). 

I have added this menu in the main template loke this:



page.10 < temp.mainTemplate

page.10 {

 workOnSubpart = DOCUMENT_BODY

 subparts.DOCUMENT_MENU < temp.popupMenu

 ...

} 



The problem is that don't matter what I do the first level from=  the menu is built right (where the subpart is) but the second level=  is built right after the <body> tag, somewhere on the top of the=  page. 

If someone can tell me what I  am doing wrong, I would appriciate=  it.

Thank you.



- raluca oprean (raluca)

-----------------------
The mailing list archive is found here:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/
				



More information about the TYPO3-english mailing list