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

Benoit Montereau bmontereau at gmail.com
Wed Oct 27 16:50:51 CEST 2010


Hi Sergey,
Thanks for your reply. My problem is not to create a 3 levels menus but to
give a "mix" between a css layer menu and a static part of the menu.

The css menu always contains the whole structure and I need to add to this
structure only a part of the sub structure depending on the page I am on.

I can get working both css and "static" menus (up to 3 levels) BUT ONLY
individually. My problem is to include a part of the static menu into the
css definition.

Hope you can help me.
Regards,
BM



On Tue, Oct 26, 2010 at 7:41 PM, Sergey Alexandrov <serg at alexandrov.us>wrote:

> 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
>
> _______________________________________________
> 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