[Typo3] optionSplit and menu

Kraft Bernhard kraftb at gmx.net
Mon Jun 27 17:25:42 CEST 2005


>>"wrap"'s get used for such stuff. OptionSplit is for different things:
>>
>>temp.menu_1.2 = TMENU
>>tmep.menu_1.2 {
>>   wrap = <div class="section" id="section"> | </div>
>>   NO.allWrap = |
>>   NO.ATagParams = class="item2"
>>}
>>
>>TSRef page 116:
>>"wrap: Wraps only if there were items in the menu"
>>
> 
> 
> Yes, but then, each menu will be in a div, and I want all menus in
> only a div...

What do you mean by "each menu will be in a div" ?
Do you probably mean "menupoint" when you write "menu" ? Because that is wrong.

the wrap property of TMENU wraps the whole menu (all items)

so it will generate:

<a href="index.php?id=1" class="item1">Level 2 Page A</a>
<div class="section" id="section">
	<a href="index.php?id=11>Level 3 Page A</a>
	<a href="index.php?id=12>Level 3 Page B</a>
	<a href="index.php?id=13>Level 3 Page C</a>
</div>
<a href="index.php?id=2" class="item1">Level 2 Page B</a>
<a href="index.php?id=3" class="item1">Level 2 Page C</a>
<a href="index.php?id=4" class="item1">Level 2 Page D</a>



greets,
Bernhard
-- 
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50



More information about the TYPO3-english mailing list