[TYPO3] Menu not rendered

Eric Thelander 3d-telis at home.se
Fri Oct 12 15:10:38 CEST 2007


Hello

My site is built with frames, having a left (for menu) and a center for 
content. The other parts of my frameset is for keeping the layout intact.

With my TS setup I've gotten the page to work all except the menu. I 
want the menu to use a html template file. I've done the necessary 
markup to let the typoscript find out where to put the dynamic menu 
element. But when I try the page the menu doesn't get rendered. To be 
sure that I actually got the correct markup in my html file I have the 
typoscript include a simple text string to identify the place where the 
menu should be. The text element works. So this leads me to believe that 
it's something wrong with the code handling the menu creation. The 
strange thing tough is that if I skip using the external html template 
the menu render.

I would really appreciate if someone could help me solve this problem

Thanks in advance
/Eric

The typoscript I'm using:
_________________________
#   Regular menu

leftMenu.10= HMENU
leftMenu.10.entryLevel = 1

leftMenu.10.1 = TMENU
leftMenu.10.1 {
  target = content
  collapse = 1
  wrap = <table border="0" table width = 100%> | </table>
  NO {
    allWrap =  <TR><TD height="22"> | </TD></TR>
  after = <BR><img src="fileadmin/frames/dotRow2.gif" height=3 
vspace=1><br> |*||*|
#    ATagBeforeWrap = 1
    linkWrap =  |
  }
}

# *************************
# Defining the Left-frame, "Left"
# *************************

# Header code, stylesheet
left.headerData.10 = TEMPLATE
left.headerData.10 {
  template = FILE
  template.file = fileadmin/template/dsu/contentMain.html
  workOnSubpart = HEADER_CODE
}

left.stylesheet = fileadmin/template/dsu/resurs/left.css

# Bodytag
left.bodyTag = <body style="background: #FFFFFF 
url(fileadmin/template/dsu/resurs/left.png) no-repeat top left">

left.10 = TEMPLATE
left.10 {
  template = FILE
  template.file = fileadmin/template/dsu/left.html
  workOnSubpart = DOCUMENT_BODY
 subparts.MENU < leftMenu.10
 subparts.MENU = TEXT
 subparts.MENU.value = The Left-frame

}

__________________________________

The html I use for the menublock:

__________________________________

<BODY bgcolor="#FFFFFF" background="resurs/left.png">

<!-- ###DOCUMENT_BODY### start-->

<P>

<!-- ###MENU### start -->

<!-- ###MENU### stop -->

</P>

<!-- ###DOCUMENT_BODY### stop-->

</BODY>

___________________________________

The resulting html source when viewed in firefox:

___________________________________

<body style="background: #FFFFFF url(fileadmin/template/dsu/resurs/left.png) no-repeat top left">
<P>
The left-frame
</P>
</body>

_________________________________







More information about the TYPO3-english mailing list