[TYPO3] Rendering menu into register

Thomas Hempel thomas at typo3-unleashed.net
Tue Sep 25 09:34:37 CEST 2007


Hi,

I have a problem which I can't solve by myself.
The point is that I have a menu in three levels. Now I want to render every menu in not nested 
lists. Example:

I have the following page tree:

page 1
   page 1.1
   page 1.2
     page 1.2.1
     page 1.2.2
   page 1.3
page 2
   page 2.1
    page 2.1.1
    page 2.1.2
   page 2.2


That should become:

<ul>
   <li>page 1</li>
   <li>page 2</li>
</ul>

<ul>
   <li>page 1.1</li>
   <li>page 1.2</li>
   <li>page 1.3</li>
</ul>

<ul>
   <li>page 2.1</li>
   <li>page 2.2</li>
</ul>

<ul>
   <li>page 1.2.1</li>
   <li>page 1.2.2</li>
</ul>

<ul>
   <li>page 2.1.1</li>
   <li>page 2.1.2</li>
</ul>

(with links and stuff of course)

The order of the uls is very important. I thought of doing this with registers but I didn't make it 
work. I even tried to render each level in a separate HMENU object buit that doesn't work either.

Has anybody an idea how I can achieve that result?


Thanks and Greets,
Thomas

-- 
typo3-unleashed.net


More information about the TYPO3-english mailing list