[Typo3] menu problem [horizontal/vertical mix]

Piotr B. pj at work.hyhy
Wed Jun 15 14:20:08 CEST 2005


JoH wrote:

> [cut]

ok, that's it.. i'm close to the give-up option...

here's my code:

---8<---
temp.menu = HMENU
temp.menu {
	wrap = <table><tr>|</tr></table>
	# menu 1st level:
	1 = TMENU
	1 {
		expAll = 1
		# normal:
		NO.wrapItemsAndSub = <td> | </td>
	}
	# menu 2nd level:
	wrap = <table>|</table>
	2 = TMENU
	2 {
		expAll = 1
		# normal:
		NO.wrapItemsAndSub = <tr><td> | </td></tr>
	}
}
---8<---

[tried without 2nd menu level, or in other configurations - but only 
this one works..]
...and that's what it brings me in html:

---8<---
<table>
	<tr><a href="index.php?id=147">menu 1</a>
		<a href="index.php?id=150">option 1.1</a>
		<a href="index.php?id=149">option 1.2</a>
		<a href="index.php?id=148">menu 2</a>
		<a href="index.php?id=152">option 2.1</a>
		<a href="index.php?id=151">option 2.2</a>
	</tr>
</table>
---8<---

suddenly - the "<td>" tags are gone.. don't know why. like the "wrap 
..." line is unvisible for the template analyser..

i don't know - maybe i'm stupid and can't write properly, maybe i'm 
blind and can't see what you've explained me here, or maybe typo3 just 
doesn't like me ;) or is it a strange bug in version 3.6.2? ;)

when i tried to analyse the template setup, write html code based on it, 
i've got this - and i think it supposed to be brought by typo3 too:

---8<---
<table>
	<tr>
	  <td><a href="index.php?id=147">menu 1</a>
	   <table>
	    <tr><td><a href="index.php?id=150">option 1.1</a></td></tr>
	    <tr><td><a href="index.php?id=149">option 1.2</a></td></tr>
		<a href="index.php?id=148">menu 2</a>
		<a href="index.php?id=152">option 2.1</a>
		<a href="index.php?id=151">option 2.2</a>
	</tr>
</table>
---8<---

pls help me, i hope - for the last time ;) or i'm going to throw my comp 
away..

greets

-- 
pj at work




More information about the TYPO3-english mailing list