[TYPO3-english] Simple submenu

Ralf-Rene Schröder ralf.rene at online.de
Mon Jul 28 17:22:37 CEST 2014


Am 28.07.2014 17:04, schrieb Jerome Elbow:
> Just a  question:
> How can I give special action/properties to page with sublinks? In this
> case, I want to give a different css class to the Products menu link.

with the followig you have in every li tag a id-XX

TOPNAV = HMENU
TOPNAV {
  wrap = <div id="navbar-collapse collapse">|</div>
  1 = TMENU
  1 {
    wrap = <ul class="nav navbar-nav">|</ul>
    NO = 1
    NO {
      wrapItemAndSub.insertData = 1
      wrapItemAndSub = <li class="normal id-{field:uid}>|</li>
    }
    ACT < .NO
    ACT {
      wrapItemAndSub = <li class="active id-{field:uid}">|</li>
    }
  }
  2 < .1
  2 {
    wrap = <ul class="level2">|</ul>
  }
}


Info: the ACT status is NOT the current site, but all in the rootline,
if you need only the actual site, then CUR is what you need...


-- 
image[FORMAT] - Ralf-René Schröder
http://www.image-format.eu ... Wir geben Ihrem Image das richtige Format


More information about the TYPO3-english mailing list