[TYPO3] Menu nivel 2

Bernd Wilke 19m0nyq02 at sneakemail.com
Tue Jul 3 15:05:06 CEST 2007



Miguel Angel Calleja Lázaro schrieb:
> Hi list, i would like to do a menu of nivel 2 type:
> 
> Page 1
> Page 2
> Page 3
>    Page 3.1
>    Page 3.2
>    Page 3.3
> Page 4
> 
> I did this, but only display pages nivel 1:
> lib.columna =  COA
> lib.columna.5=TEXT
> lib.columna.5.value=<h2>Prensa</h2>
> lib.columna.10 = HMENU
> lib.columna.10.entryLevel=1
> lib.columna.10.1 = TMENU
> lib.columna.10.1 {
> wrap = <ul>|</ul>
> NO.allWrap = <li> | </li>  ACT = 1
>  ACT.allWrap = <li class="active">| </li>
> }
> 
> How can I do to display menu nivel 1 and nivel 2 if is there at the same 
> time? Thanks

just copy your definition for the first level to following levels:

lib.columna.10.2 < lib.columna.10.1
lib.columna.10.3 < lib.columna.10.2
    :

be aware that your definition has no properly nested lists.
it will become invalid html like:
<ul>
<li>Page 1</li>
<li>Page 2</li>
<li>Page 3</li>
<ul>
<li>Page 3.1</li>
<li>Page 3.2</li>
<li>Page 3.3</li>
</ul>
<li> Page 4</li>
</ul>

solution:
use
lib.columna.10.1.NO.wrapItemAndSub = <li> | </li>
instead of
lib.columna.10.1.NO.allWrap = <li> | </li>

(also for ACT)

Bernd
-- 
http://www.pi-phi.de/t3v4/cheatsheet.html


More information about the TYPO3-english mailing list