[Typo3] GMENU weird behaviour - Bug?
Peter Klein
peter at umloud.dk
Fri Oct 28 13:17:37 CEST 2005
Hi list, I was wondering if anyone else have experinced weird behaviour when
using GMENU?
-- cut --
lib.mainMenu = COA
lib.mainMenu {
10 = HMENU
10.wrap = <table border="3" cellpadding="0" cellspacing="0"><tr> |
</tr></table>
10.1 = GMENU
10.1 {
wrap = <td width="15"> </td><td width="165" valign="top">[ | ]</td>
NO {
backColor = #FFFFFF
XY = [10.w]+2, 12
10 = TEXT
10.text.data = field:title
10.text.case = upper
10.fontFile = kroeger_06_65.ttf
10.fontSize = 8
10.fontColor = #999999
10.offset = 1,10
10.antiAlias = 0
10.niceText = 0
wrap = |<br />
}
RO < .NO
RO = 1
RO.10.fontColor = #000000
ACT < .RO
ACT = 1
}
10.2 = GMENU
10.2 {
wrap= <td width="15"> </td><td width="165" valign="top">[[
| ]]</td>
NO {
backColor = #FFFFFF
XY = [10.w]+2, 12
10 = TEXT
10.text.data = field:title
10.text.case = upper
10.fontFile = kroeger_06_55.ttf
10.fontSize = 8
10.fontColor = #999999
10.offset = 1,10
10.antiAlias = 0
10.niceText = 0
wrap = |<br />
}
RO < .NO
RO = 1
RO.10.fontColor = #000000
ACT < .RO
ACT = 1
}
}
page.1 < lib.mainMenu
-- cut --
Using the above TS object, generates this output:
-- cut --
]
<table border="3" cellpadding="0" cellspacing="0">
<tr>
<td width="15"> </td>
<td width="165" valign="top">[<a href="index.php?id=568"
onfocus="blurLink(this);" onmouseover="over('img568_bedb_0');"
onmouseout="out('img568_bedb_0');"><img src="typo3temp/menu/fcec95ffc4.gif"
width="52" height="12" border="0" alt="Ydelser" name="img568_bedb_0"
id="img568_bedb_0" /></a><br />
<a href="index.php?id=567" onfocus="blurLink(this);"
onmouseover="over('img567_bedb_1');" onmouseout="out('img567_bedb_1');"><img
src="typo3temp/menu/59e44d1e67.gif" width="74" height="12" border="0"
alt="Referencer" name="img567_bedb_1" id="img567_bedb_1" /></a><br />
<a href="index.php?id=566" onfocus="blurLink(this);"
onmouseover="over('img566_bedb_2');" onmouseout="out('img566_bedb_2');"><img
src="typo3temp/menu/015a9f7028.gif" width="79" height="12" border="0"
alt="Umloud Untd" name="img566_bedb_2" id="img566_bedb_2" /></a><br /></td>
<td width="15"> </td>
<td width="165" valign="top">[[<a href="index.php?id=581"
onfocus="blurLink(this);" onmouseover="over('img581_504b_0');"
onmouseout="out('img581_504b_0');"><img src="typo3temp/menu/eadd2080a9.gif"
width="33" height="12" border="0" alt="Leder" name="img581_504b_0"
id="img581_504b_0" /></a><br />
<a href="index.php?id=580" onfocus="blurLink(this);"
onmouseover="over('img580_504b_1');" onmouseout="out('img580_504b_1');"><img
src="typo3temp/menu/36ea15f732.gif" width="44" height="12" border="0"
alt="Visioner" name="img580_504b_1" id="img580_504b_1" /></a><br />
<a href="index.php?id=579" onfocus="blurLink(this);"
onmouseover="over('img579_504b_2');" onmouseout="out('img579_504b_2');"><img
src="typo3temp/menu/0808b41cec.gif" width="40" height="12" border="0"
alt="Stedet" name="img579_504b_2" id="img579_504b_2" /></a><br />
<a href="index.php?id=578" onfocus="blurLink(this);"
onmouseover="over('img578_504b_3');" onmouseout="out('img578_504b_3');"><img
src="typo3temp/menu/595cc116e2.gif" width="76" height="12" border="0"
alt="Medarbejdere" name="img578_504b_3" id="img578_504b_3" /></a><br />
<a href="index.php?id=577" onfocus="blurLink(this);"
onmouseover="over('img577_504b_4');" onmouseout="out('img577_504b_4');"><img
src="typo3temp/menu/64442b199f.gif" width="47" height="12" border="0"
alt="Nyheder" name="img577_504b_4" id="img577_504b_4" /></a><br />
<a href="index.php?id=576" onfocus="blurLink(this);"
onmouseover="over('img576_504b_5');" onmouseout="out('img576_504b_5');"><img
src="typo3temp/menu/c445b83700.gif" width="40" height="12" border="0"
alt="Find os" name="img576_504b_5" id="img576_504b_5" /></a><br />
]]</td>
</tr>
</table>-- cut --
To test the wrap, I added [] around the 1st menulevel , and [[]] around the
2nd menulevel.
The weird part is that the ending "]" of the first menulevel gets PLACED
OUTSIDE THE TABLE, even if the wrap line containing the [] wraping ALSO
CONTAINS the TD wrapping, which gets placed correctly???
--
Peter Klein/Umloud Untd
More information about the TYPO3-english
mailing list