[Typo3] HMENU / TMENU wrap problem
John Greene
john at grumpet.net
Fri May 27 18:57:06 CEST 2005
Hello,
I am trying to implement a site with a specific horizontal menu, and I am
failing to fully understand the HMENU/TMENU concepts. Based on the MBR
Part 2 exercise, as well as other examples I have found, I have made this:
temp.menu_3 = HMENU
temp.menu_3.1 = TMENU
temp.menu_3.1.expAll = 1
temp.menu_3.1.NO {
doNotLinkIt = 1
stdWrap.field = field:uid
before.data = field:uid
allWrap = <div id=" | "> | </div>
after = Menu
}
ACT=1
temp.menu_3.2 = TMENU
temp.menu_3.2.noBlur = 1
temp.menu_3.2.NO {
before.wrap = <img
src="/fileadmin/template/main/images/green_sq_bullet.gif"
class="menu_bullet" />
after.wrap = <br />
}
ACT=1
Which works... sort of. What doesn't work as I expect is:
allWrap = <div id=" | "> | </div>
what I get is:
<div id="16Menu"><img src="/fileadmin/template/main/images/green_sq_bullet.gif"
class="menu_bullet" /><a href="index.php?id=17">Products Overview</a><br
/><img src="/fileadmin/template/main/images/green_sq_bullet.gif"
class="menu_bullet" /><a href="index.php?id=18">Products by
Application</a><br /><img
src="/fileadmin/template/main/images/green_sq_bullet.gif"
class="menu_bullet" /><a href="index.php?id=19">Products by Name</a><br
/><img src="/fileadmin/template/main/images/green_sq_bullet.gif"
class="menu_bullet" /><a href="index.php?id=20">Products by Type</a><br />
and what I want is:
<div id="16Menu"><img src="/fileadmin/template/main/images/green_sq_bullet.gif"
class="menu_bullet" /><a href="index.php?id=17">Products Overview</a><br
/><img src="/fileadmin/template/main/images/green_sq_bullet.gif"
class="menu_bullet" /><a href="index.php?id=18">Products by
Application</a><br /><img
src="/fileadmin/template/main/images/green_sq_bullet.gif"
class="menu_bullet" /><a href="index.php?id=19">Products by Name</a><br
/><img src="/fileadmin/template/main/images/green_sq_bullet.gif"
class="menu_bullet" /><a href="index.php?id=20">Products by Type</a><br
/></div>
(note the trailing </div>)
If someone could point me in the right direction, I'd be grateful. I have
read the relevant documentation, but there seem to be many references in
it to concepts that I don't fully understand. I don't usually like to
write code using the cargo cult method.
Thanks in advance,
John
More information about the TYPO3-english
mailing list