[Typo3] menu problem [horizontal/vertical mix]

Kraft Bernhard kraftb at gmx.net
Wed Jun 15 14:49:11 CEST 2005


Piotr B. wrote:
> temp.menu = HMENU
> temp.menu {
>     wrap = <table><tr>|</tr></table>
>     # menu 1st level:
>     1 = TMENU
>     1 {
>         expAll = 1
>         # normal:
>         NO.wrapItemsAndSub = <td> | </td>
>     }
>     # menu 2nd level:
>     wrap = <table>|</table>
>     2 = TMENU
>     2 {
>         expAll = 1
>         # normal:
>         NO.wrapItemsAndSub = <tr><td> | </td></tr>
>     }
> }

Try this one (untested but most probably working) :

temp.menu = HMENU
temp.menu {
   # Wrap whole menu (use this just once - later defintions overwrite the first one)
   wrap = <table><tr>|</tr></table>
   # menu 2nd level:
   1 = TMENU
   1 {
     expAll = 1
     # normal:
     # One <td>|</td> for each main-menu-entry (| gets replaced by main-menu-entry+sub-menu)
     NO.wrapItemsAndSub = <td> | </td>
     # Wrap the main-menu-entry (just the main-menu-entry. not the following sub-menu)
     NO.allWrap = <div class="main"> | </div>
   }
   # menu 2nd level:
   2 = TMENU
   2 {
     # Not needed her. We want just the first level to expand
     # expAll = 1
     # normal:
     # Wrap each sub-menu-item in a DIV so they get displayed below each other ...
     NO.allWrap = <div class="sub"> | </div>
   }
}



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