[TYPO3-english] HMENU and entryLevel

d.ros projects at r-system.de
Fri Jul 19 17:24:24 CEST 2013


Am 19.07.2013 17:03, schrieb Simone Paolinelli:
> Hi to all,
>
> I'm going crazy with a script to create a menu that should list:
>
>   - current page
>   - all page "sister" of current page
>   - all subpages  of current page
>
> The script that I using (view below) work fine just with second level
> pages.
>
> That I want is to set entryLevel dynamic (equal to level of parent of
> current page) but I don't know how do this!
>
> Thanks in advance for any suggestions!
>
> Simone
>
>
>
>
>
> lib.menuInterno = HMENU
> lib.menuInterno {
>    entryLevel = 2
>
>    1 = TMENU
>    1.wrap = <ul>|</ul>
>    1{
>      NO{
>        wrapItemAndSub = <li>|</li>
>      }
>      ACT=1
>      ACT{
>        wrapItemAndSub = <li>|</li>
>      }
>      CUR=1
>      CUR{
>        wrapItemAndSub = <li class="active">|</li>
>      }
>      IFSUB=1
>      IFSUB{
>        wrapItemAndSub = <li>|</li>
>      }
>    }
>
>    2 = TMENU
>    2.wrap = <ul>|</ul>
>    2{
>      NO{
>        wrapItemAndSub = <li>|</li>
>      }
>      ACT=1
>      ACT{
>        wrapItemAndSub = <li class="active">|</li>
>      }
>      CUR=1
>      CUR{
>        wrapItemAndSub = <li class="active">|</li>
>      }
>      IFSUB=1
>      IFSUB{
>        wrapItemAndSub = <li>|</li>
>      }
>    }
> }

Condition is a QD solution . . .

[treeLevel = 2]
lib.menuInterno.entryLevel = 2
[GLOBAL]
[treeLevel = 3]
lib.menuInterno.entryLevel = 3
[GLOBAL]
[treeLevel = 4]
lib.menuInterno.entryLevel = 4
[GLOBAL]
[treeLevel = 5]
lib.menuInterno.entryLevel = 5
[GLOBAL]



cheers

David


More information about the TYPO3-english mailing list