[Typo3] bars between menu items

Dr. Patrick van der Smagt smagt at dlr.de
Fri Jun 24 00:57:55 CEST 2005


I'm trying to setup the following menus:

 1. Item
 -------
 2. Item  (this one is active)
 2.1 Item
 2.2 Item
 --------
 3. Item
 --------
 4. Item
 --------

Using foldout menus, horizontal bars should be following level-1 menu items,
except when these are activated (as "2. Item" in the above example).  In
that case, the bar should be following the last level-2 menu item.

That would work if I put the bar *before* the level-1 item rather than
following it, but I do not want a bar before the first item (and I do want a
bar after the last one).

How can this be done?  I can, of course, leave out the bar following the "2.
Item" above by defining the 2.act.allWrap accordingly, but how do I get one
following "2.2 Item"?

My menu now looks like this:

temp1.foldoutmenu = HMENU
temp1.foldoutmenu {
1 = TMENU
1 {
  wrap = <table> | </table>
  NO.allWrap = <tr><td> | &nbsp;</td></tr> <tr><td><img
src="bar.gif"></td></tr>
  ACT = 1
  ACT.allWrap = <tr><td> | &nbsp;</td></tr>
}
2 = TMENU
2 {
  wrap = | <tr><td><img src="bar.gif"></td></tr>
  NO.allWrap = <tr><td> | </td></tr>
  ACT = 1
  ACT.allWrap = <tr><td> | </td></tr>
}

}

but, of course, I have the missing bar following the active menu at level 1,
if there is no level-2 menu.

Hints?


Patrick




More information about the TYPO3-english mailing list