typo3 show submenu without subpages -
i have website pages, presented in normal menu. every page has subpages , shows them in submenu. except 1 page. page has no subpages , should have content menu navigates different content sections on page. thing content navigation done with:
temp.contentnav = content temp.contentnav { table = tt_content select { pidinlist = 7 orderby = sorting = colpos=0 languagefield=sys_language_uid } renderobj = text renderobj { field = header wrap= <li>|</li> typolink.parameter.field=pid typolink.parameter.datawrap=|#{field:uid} typolink.atagparams = class="linksubpage" if.istrue.field=header } wrap = <ul id="submenu"> | </ul> } page.10.marks.menu.2a.no.after.cobject < temp.contentnav
but works if page has @ least 1 subpage. workaround add subpage , hide submenulink, there better solution show custom submenu without adding subpages?
use hmenu item levels generate submenu. behavior not right 1 in typo3 working style. use rights typoscript objects.
and remove "a
" "page.10.marks.menu.2a.no
". correct use 1,2,3,...
- http://docs.typo3.org/typo3cms/typoscriptreference/menuobjects/commonproperties/index.html
- http://docs.typo3.org/typo3cms/typoscriptreference/menuobjects/commonitemstates/index.html
- http://docs.typo3.org/typo3cms/typoscriptreference/menuobjects/tmenu/index.html
- http://docs.typo3.org/typo3cms/typoscriptreference/menuobjects/tmenuitem/index.html
Comments
Post a Comment