[TYPO3-english] How to integrate a loop when building HMENU?

Sergey Alexandrov serg at alexandrov.us
Tue Oct 26 19:41:00 CEST 2010


3-levels menu example:

Setup:

temp.lmenu = HMENU
temp.lmenu  {
	wrap = <div id="tmmid"><ul>|</ul></div>
	1 = TMENU
	1 {
		begin = 1
		expAll = 1
		wrap = |
		NO.allWrap = <li class="tlev1">|</li>
		IFSUB = 1
		IFSUB.allWrap = <li class="tlev1"><div
style="position:relative;">|</div>
	}
	2 = TMENU
	2 {
		expAll = 1
		wrap = <ul class="tlev11">|</ul></li>
		NO.allWrap = <li class="tlev11">|</li>
		IFSUB = 1
		IFSUB.allWrap = <li class="tlev11"><div
style="position:relative;">|</div>
	}
		
	3 = TMENU
	3 {
		expAll = 1
		wrap = <ul class="tlev22">|</ul></li>
		NO.allWrap = <li class="tlev22">|</li>
	}
		
}

CSS:

#tmmid ul {list-style: none;margin:0;padding:0}
#tmmid li ul {
    display: none;
    position:absolute;
    margin-top:-15px;
    left:120px;
    z-index:9999;
}
#tmmid li:hover ul.tlev11 {display: block;}
#tmmid li.tlev11:hover ul.tlev22 {display: block;}
#tmmid .tlev11 a {font-size:11px;}
#tmmid ul.tlev11,#tmmid ul.tlev22 {background-color:#886115;border:1px solid
white;border-bottom:none}
#tmmid li.tlev11,#tmmid li.tlev22 {padding:0 15px;border-bottom:1px solid
white;background-color:#886115;white-space:nowrap}

-----Original Message-----
From: typo3-english-bounces at lists.typo3.org
[mailto:typo3-english-bounces at lists.typo3.org] On Behalf Of Benoit Montereau
Sent: Tuesday, October 26, 2010 8:20 AM
To: TYPO3 English
Subject: Re: [TYPO3-english] How to integrate a loop when building HMENU?

Hi Xavier,
The menu I mentionned (http://www.grolley.ch/fr/admin/dechets/collecte/) was
just to explain the result (css layer + 'static' menu). The way the links
and titles will be defined should of course be ok.
Regards,
BM



More information about the TYPO3-english mailing list