[TYPO3] Show menu title (current page) only if the MENU has been filled (is not empty)
Karol Martinka
kmartinka at accalio.com
Sat Dec 15 21:41:45 CET 2007
Again answered by myself :))
You have to move the "wrap" from HMENU in to TMENU ...
20 = HMENU
20.special = directory
20.1 = TMENU
20.1.stdWrap.dataWrap = <h2>{page : title}</h2><ul>|</ul>
20.1.NO {
allWrap = <li>|</li>
Karol
"Karol Martinka" <kmartinka at accalio.com> wrote in message
news:mailman.1.1197750960.20315.typo3-english at lists.netfielders.de...
> Hello,
>
> I have this code :
>
> 20 = HMENU
> 20.special = directory
> 20.stdWrap.dataWrap = <h2>{page : title}</h2><ul>|</ul>
> 20.1 = TMENU
> 20.1.NO {
> allWrap = <li>|</li>
> }
>
> I would like to show the dataWrap only if the menu has entries.. That
> means, I need a menu with header, which will be displayed, only if the
> menu has entries.. I think there should be more ways how to achieve it,
> but I'm playing with it for about 2 hours without success.
>
> Btw. how is the IF in HMENU working?!
>
> Thanks,
> Karol
>
More information about the TYPO3-english
mailing list