[TYPO3-english] Repeat a Wrap every 4 times (maybe optionSplit)

Ansgar Brauner ansgarb at gmail.com
Thu Feb 4 15:55:17 CET 2010


Hi all,

here is another menu related problem which I could not solve in the last
days by googleing.

I'd like to wrap something around my MenuEntries. But I always want four
menuentries wrapped or less if there are odd number of entries (wrap
4items wrap 4items wrap 3items).

The problem comes from some kind of "MegaMenu" I have several sub and
subsubmenus which should be shown as one big menu. The snippet below
shows the pure menu structure. What I'd like to get is wrapped div
around Item A and Item B and a div around Item C and D and a div around E.

Would this be possible with the optionSplit functionality? Is there a
way to revert the order? Not starting with the last Item.

Thank you all very much

regards

Ansgar

Something like this:

<ul>

<!--How to wrap here -->
  <li>Item A
    <ul>
      <li></li>
      <li></li>
      <li></li>
    </ul>
  </li>

  <li>Item B
    <ul>
      <li></li>
      <li></li>
      <li></li>
    </ul>
  </li>
<!--How let the wrap end -->
<!--How to wrap here -->
  <li>Item C
    <ul>
      <li></li>
      <li></li>
      <li></li>
    </ul>
  </li>

  <li>Item D
    <ul>
      <li></li>
      <li></li>
      <li></li>
    </ul>
  </li>
<!--How let the wrap end -->
<!--How to wrap here -->
  <li>Item E
    <ul>
      <li></li>
      <li></li>
      <li></li>
    </ul>
  </li>
<!--How let the wrap end -->
</ul>


More information about the TYPO3-english mailing list