[TYPO3-english] Wrapping
Salman Javaid
salman at tidi.be
Fri Apr 29 15:47:22 CEST 2011
*Hello Tomas,*
Thank you very much for your kind help.
The code you have given is working but it only works when i go to for
example about us page. If i go to home page or contact page then drop down
does not work. here is the link http://www.wheelsandtools.be
I want to populate drop down on every page.
I will be really thankful to you if you can help me a bit more.
*
Thanks & Regards,
Salman Javaid*
On Fri, Apr 29, 2011 at 3:19 PM, Tomas Mrozek <mail at cascaval.com> wrote:
> > The problem is, if sub menu exists then <li> should not be closed and
> > next <ul> should be started.
>
> Well, that's why you are using "wrapItemAndSub" property, isn't it? It
> wraps the item plus any submenus. However, you have made few mistakes in
> the setup.
>
> Try this:
>
> MENU = HMENU
> MENU {
> entryLevel = 0
>
> # First level
> 1 = TMENU
> 1 {
> wrap = <ul>|</ul>
>
> NO {
> allWrap = <li>|</li>
> }
>
> IFSUB = 1
> IFSUB {
> wrapItemAndSub = <li class="submenu">|</li>
> }
> }
>
> # Second level
> 2 = TMENU
> 2 {
> wrap = <ul>|</ul>
>
> NO {
> allWrap = <li>|</li>
> }
>
> IFSUB = 1
> IFSUB {
> wrapItemAndSub = <li class="submenu_inn">|</li>
> }
> }
> }
>
> Tomas Mrozek
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list