Posted by & filed under TYPO3.

wrapItemAndSub option was available for TMENU object, and could be used to wrap the current item, and all its sub-items. This option is now available for GMENU object as well.

lib.graphMenu = HMENU
lib.graphMenu {
   1 = GMENU
   1 {
      wrap = <ul>|</ul>
      NO {
         allWrap = <li>|</li>
         XY = [10.w]+5,18
         10 = TEXT
         10 {
            text.field = title
         }
      }
      ACT < .NO
      ACT = 1
      ACT.allWrap >
      ACT.wrapItemAndSub = <li>|</li>
   }
   2 < .1
   3 < .1
   4 < .1
}

More info:
RFC #6525: Feature: wrapItemAndSub for GMENU
http://bugs.typo3.org/view.php?id=6525

Leave a Reply

  • (will not be published)