[TYPO3] Menu not rendered
Eric Thelander
3d-telis at home.se
Mon Oct 15 21:14:51 CEST 2007
Hello again
I solved the problem with my menu not being rendered. A complete redo of the tsSetup solved it but now I've stumbled onto another problem.
I want to place the generated menu inside a table to be able to adjust the layout. In my html file I've placed a markup that will be replaced by the menu. The problem is that when I view the resulting html source the menu is inserted at another line outside the table. Does anybody know the cause of this?
tsSetup:
left.5 = HMENU
left.5.1 = TMENU
left.5.1.target = content
left.5.1.wrap = | <BR><BR>
left.5.1.NO {
# linkWrap = <font color=yellow> | </font> <br>
wrap = <table border="0" table width = 100%> | </table>
allWrap = <TR><TD height="22"><img src="fileadmin/frames/button3.gif"> | </TD></TR>
#allWrap = <TR><td height="30" width="65"> </td><td align="left" valign="center" height="30"> <img src="fileadmin/frames/button3.gif"> | </TD></TR>
after = <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/left.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.APA < left.5
}
html template:
<!-- ###DOCUMENT_BODY### start-->
<BODY bgcolor="#ffffff"/>
<TABLE cellspacing="0" cellpadding="0" border="0" width="100%" height="100%">
<TBODY>
<TR>
<TD width="30" height="20">
</TD>
</TR>
<TR>
<TD width="30" height="20">
</TD>
<TD valign="bottom" align="left" height="20">
<!-- ###APA### start -->Replace by menu <!-- ###APA### stop -->
</TD>
<TD valign="top" align="left" width="30" height="20">
</TD>
</TR>
</TBODY>
</TABLE>
<!-- ###DOCUMENT_BODY### stop-->
.
The resulting html source
<body>
(It's place here ->) <TR><TD height="22"><img src="fileadmin/frames/button3.gif"><a href="index.php?id=244&type=3" target="content" onfocus="blurLink(this);">Vilka vi är</a><BR></TD></TR><TR><TD height="22"><img src="fileadmin/frames/button3.gif"><a href="index.php?id=243&type=3" target="content" onfocus="blurLink(this);">Vad vi gör</a><BR></TD></TR><TR><TD height="22"><img src="fileadmin/frames/button3.gif"><a href="index.php?id=242&type=3" target="content" onfocus="blurLink(this);">Företag</a><BR></TD></TR><TR><TD height="22"><img src="fileadmin/frames/button3.gif"><a href="index.php?id=241&type=3" target="content" onfocus="blurLink(this);">Kontakt</a><BR></TD></TR><BR><BR>
<BODY bgcolor="#ffffff"/>
<TABLE cellspacing="0" cellpadding="0" border="0" width="100%" height="100%">
<TBODY>
<TR>
<TD width="30" height="20">
</TD>
</TR>
<TR>
<TD width="30" height="20">
</TD>
<TD valign="bottom" align="left" height="20">
(It should be here->)
</TD>
<TD valign="top" align="left" width="30" height="20">
</TD>
</TR>
</TBODY>
</TABLE>
</body>
Eric Thelander skrev:
> 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>
>
> _________________________________
>
>
>
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
>
More information about the TYPO3-english
mailing list