[TYPO3-english] typoscript multi-column mega-menu
jaco graaff
jaco at spacexplorer.co.za
Tue Sep 13 06:03:29 CEST 2011
I want to split a submenu hierchy into columns for a multi-column mega-menu
the result would be something like this
subMenu001 | subMenu003 | subMenu005 |
item001 | item001 | item001 |
item002 | item002 | item002 |
subMenu002 | subMenu004 | |
item001 | item001 |
|
item002 | item002 |
|
html:
<div class="dropdown">
<div class="column1">
<h1>subMenu001</h1>
item001
item002
<h1>subMenu002</h1>
item001
item002
</div>
<div class="column2">
....................
</div>
</div>
I tried using:
2 = TMENU
2.expAll = 1
##2.wrap = |*|odd||even|*|
OR
allWrap =|*| <1>|</1> || <2>|</2> |*|
AND THEN
## 1st/even item 2nd/odd
item
allWrap = |*| <div class="column1">| || |</div>
|*|
but then the second closing </div> tag won't get rendered if ther are an odd
number (3,5,7) of menu items - as in subMenu005 in the example above
I tried using the solution at:
http://www.typo3wizard.com/en/snippets/menus/menu-with-2-colors-last-menuitem-depends-on-the-menuitem-before.html
but it only targets the second last item
- I would like to do this with typoscript - but for now will use jquery
magick (php would also have a simple solution)
Does someone have an idea of how I can do this with typoscript
Thanks
More information about the TYPO3-english
mailing list