[TYPO3] Creating menu based on the same level pages

bernd wilke xoonsji02 at sneakemail.com
Wed Jul 16 20:42:55 CEST 2008


on Wed, 16 Jul 2008 11:23:26 -0700, Bade Iriabho wrote:

> on Wednesday, July 16, 2008 12:08:53 PM, bernd wrote:
> 
>>just look for entrylevel.
>>i don't remember it clearly. you may user something like
>>	entrylevel = -1
> 
> Tried that and it did not work

I did it once, but the installation doesn't exist any more. 
Maybe it was -2?
 
>>another aproach could be to use condition about the entrylevel to define
>>the menu:
> 
>>temp.menu = HMENU
>>temp.menu {
>>	entrylevel = 0
>>}
>>[entrylevel = 1]
>>temp.menu.entrylevel = 1
>>[entrylevel = 2]
>>temp.menu.entrylevel = 2
>>[entrylevel = 3]
>>temp.menu.entrylevel = 3
>> :
>>[global]
> 
>>or in a similar way
> 
> This approach sounds interesting but I am not a TS expert. So I am
> guessing this would go something like...
> 
> temp.subMenu = HMENU
> temp.subMenu {
>     entryLevel = 0
> }
> [entrylevel = 1]
> temp.menu.entrylevel = 1
> [entrylevel = 2]
> temp.menu.entrylevel = 2
> [entrylevel = 3]
> temp.menu.entrylevel = 3
> temp.subMenu.wrap = <ul id="leftnavbottom_list">|</ul>
> temp.subMenu.1 = TMENU
> temp.subMenu.1.NO {
> 	allWrap = <li>|</li>
> }

this is wrong as you define your menu-items only for entrylevel 3.
you missed the [global] to end any condition. the ':' was ment for 
further levels.
the definition of your menu-items can be entered in the brackets before 
the conditions. You may change other values (e.g. classes in wraps) in 
the following conditions.
keep in mind: conditions can occur only on top-level of typoscript-
objects.

 
> I am yet to test this but let me know if I am wrong.


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


More information about the TYPO3-english mailing list