[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TYPO3-english] Wrapping



I've already posted my solution, but anyway:
Have to add z-indexed DIVs to resolve my specific layout/css issues. IE won't work without them.
Let me know if you need a sample CSS

temp.topmenu = HMENU
temp.topmenu {
  special = directory
  special.value = 1
  wrap = <div id="tmmid" style="z-index:3000"><ul class="menu">|</ul></div>
  1 = TMENU
  1 {
    expAll=1
    wrap = |
NO.allWrap = |*||*| <li class="tlev1">|<span class="sep">&#124;</span></li> || <li class="tlev1">|</li>
    IFSUB = 1
IFSUB.allWrap = <li class="tlev1"><div style="position:relative;z-index:2000">|
  }
  2 = TMENU
  2 {
    expAll=1
    wrap = <ul class="tlev11">|</ul></div></li>
    NO.allWrap = <li class="tlev11">|</li>
    IFSUB = 1
IFSUB.allWrap = <li class="tlev11"><div style="position:relative;z-index:1000;">|
  }
  3 = TMENU
  3 {
    wrap = <ul class="tlev22">|</ul></div></li>
    NO.allWrap = <li class="tlev22">|</li>
  }
}


On 4/29/2011 8:37 AM, Salman Javaid wrote:
*Hello Tomas,*

Thank you for your reply.

I am trying to set levels in a drop down javascript menu. The problem is, if
sub menu exists then<li>  should not be closed and next<ul>  should be
started.

*The TYPO Script is below:*

MENU = HMENU
     MENU{
     entryLevel = 0
     1 = TMENU
     1.wrap =<ul>|</ul>
     1{
          NO.allWrap =<li>|</li>
      }

     IFSUB=1
     IFSUB{
       wrapItemAndSub =<ul><li class="submenu">|</li></ul>
     }

   # second level
   2 = TMENU
   2.wrap = |
   2{
     NO{
       wrapItemAndSub =<li>|</li>
     }

     IFSUB=1
     IFSUB{
       wrapItemAndSub =<li class="submenu_inn">|</li>
     }
   }
*
I need below given out put*

<ul>
    <li><a href="#">Home</a></li>
    <li class="submenu"><a href="#">About Us</a>
          <ul>
               <li><a href="#">Company</a></li>
               <li><a href="#">Quality</a></li>
         </ul>
    </li>
    <li><a href="#">Contact</a></li>
</ul>
*
Thank you.


Salman*

On Fri, Apr 29, 2011 at 2:29 PM, Tomas Mrozek<[email protected]>  wrote:

You mean how the below given HTML code using HMENU?
If yes, what exactly are you struggling with?

Tomas Mrozek
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english