[TYPO3-UG Dutch] Menu start punt

Jeroen Vermolen jvermolen at live.nl
Tue Nov 27 12:50:14 CET 2012


Hoi Paul,

Kun je me de link geven van de website? Ik heb denk hetzelfde gemaakt 
met deze code (alleen moet je die dan nog omvormen naar je eigen menu):


lib.topmenu=HMENU

lib.topmenu.entryLevel=0
lib.topmenu{
wrap=<ulclass="topmenu">|</ul>

1=TMENU
1{
noBlur=1
expAll=1

NO=1
NO{
wrapItemAndSub=<liclass="first">|</li>|*|<liclass="normal">|</li>|*|<liclass="last">|</li>
}
ACT=1
ACT{
wrapItemAndSub=<liclass="firston">|</li>|*|<liclass="normalon">|</li>|*|<liclass="laston">|</li>
}
}
}


[treeLevel = 2, 3]
lib.hoofdmenu=HMENU

lib.hoofdmenu.entryLevel=1
lib.hoofdmenu{
wrap=<divid="hoofdmenu"><ul>|</ul></div><divid="hmenu_clear"></div>

1=TMENU
1{
noBlur=1
expAll=1

NO=1
NO{
linkWrap=<li>|</li>
}
ACT=1
ACT{
linkWrap=<liclass="active">|</li>
}
}

}
[global]

[treeLevel = 1]
lib.hoofdmenu=HMENU

lib.hoofdmenu.entryLevel=1
lib.hoofdmenu{
wrap=<divid="hoofdmenu"><ul>|</ul></div><divid="hmenu_clear"></div>

1=TMENU
1{
noBlur=1
expAll=1

NO=1
NO{
linkWrap=<li>|</li>
}
ACT=1
ACT{
linkWrap=<liclass="active">|</li>
}
}

}
lib.hoofdmenu.if.isTrue.numRows{
table=pages
where=pid=this
}
[global]

[treeLevel = 3]
lib.submenu=HMENU

lib.submenu.entryLevel=2
lib.submenu{
wrap=<divid="submenu"><ul>|</ul></div><divid="smenu_clear"></div>
1=TMENU
1{
noBlur=1
expAll=1

NO=1
NO{
wrapItemAndSub=<li>|</li>
}
ACT=1
ACT{
wrapItemAndSub=<liclass="active">|</li>
}
}
}
[global]

[treeLevel = 2]
lib.submenu=HMENU

lib.submenu.entryLevel=2
lib.submenu{
wrap=<divid="submenu"><ul>|</ul></div><divid="smenu_clear"></div>
1=TMENU
1{
noBlur=1
expAll=1

NO=1
NO{
wrapItemAndSub=<li>|</li>
}
ACT=1
ACT{
wrapItemAndSub=<liclass="active">|</li>
}
}
}
lib.submenu.if.isTrue.numRows{
table=pages
where=pid=this
}
[global]

Groetjes,

Jeroen


Op 27-11-2012 12:40, Paul Maas schreef:
> Dit lijkt niet te werken, Ik krijg nu op het diepste niveau dus bij de
> pagina's die geen childs hebben een
> leeg menu aan de rechterzijde. Ik wil dat hij bij het laatste niveau niet
> meer naar een dieper menu gaat.
>
> Zijn special.value.data moet op dat moment dus zijn parentid zijn. In alle
> andere gevallen is zijn specialvalue.data zijn eigen uid.
> Als ik de pid & uid handmatig achter special.value.data zet dan werkt het
> wel goed. Dit automatisch laten doen werkt echter niet.
>
>
> temp.RIGHT_MENU= HMENU
> temp.RIGHT_MENU.special = directory
>
> ### GEEN CHILDS parent uid ####
> temp.RIGHT_MENU.special.value.data = pid
> temp.RIGHT_MENU.if.isFalse.numRows  {
> table  =  pages
> where  =  pid=this
> }
>
>
>
> temp.RIGHT_MENU.1 = TMENU
> temp.RIGHT_MENU.1 {
>      wrap = <ul>|</ul>
>      expAll = 1
>      NO {
>        wrapItemAndSub = <li>|</li>
>          ATagTitle.field = 1
>     }
>     ACT = 1
>      ACT{
>        wrapItemAndSub = <li class="active"> | </li>
>          ATagTitle.field = 1
>          stdWrap.htmlSpecialChars = 1
>          ATagParams = class="active"
>      }
>      IFSUB{
>         wrapItemAndSub = <li >|</li>
>          ATagTitle.field = 1
>      }
> }
>
>
>
>
> Op 27 november 2012 12:28 schreef Jeroen Vermolen <jvermolen at live.nl> het
> volgende:
>
>> Hallo Paul,
>>
>> Probeer het onderstaande er eens onder te zetten:
>>
>> temp.RIGHT_MENU.if.isTrue.**numRows  {   table  =  pages   where  =
>>   pid=this
>> }
>>
>> Ik denk dat je dat bedoelt.
>>
>> Groetjes,
>>
>> Jeroen
>>
>> Op 27-11-2012 12:06, Paul Maas schreef:
>>
>>   Hallo Lijst,
>>> Ik heb onderstaand menu.
>>>
>>>
>>>
>>> temp.RIGHT_MENU= HMENU
>>> temp.RIGHT_MENU.special = directory
>>>
>>> temp.RIGHT_MENU.special.value.**data = {$menustart}
>>>
>>> temp.RIGHT_MENU.1 = TMENU
>>> temp.RIGHT_MENU.1 {
>>>       wrap = <ul>|</ul>
>>>       expAll = 1
>>>       NO {
>>>         wrapItemAndSub = <li>|</li>
>>>           ATagTitle.field = 1
>>>      }
>>>      ACT = 1
>>>       ACT{
>>>         wrapItemAndSub = <li class="active"> | </li>
>>>           ATagTitle.field = 1
>>>           stdWrap.htmlSpecialChars = 1
>>>           ATagParams = class="active"
>>>       }
>>>       IFSUB{
>>>          wrapItemAndSub = <li >|</li>
>>>           ATagTitle.field = 1
>>>       }
>>> }
>>>
>>>
>>> Nu wil ik op de plaats waar {$menustart} staat in het geval dat er géén
>>> child pages zijn de parent ID van de huidige pagina als startpunt
>>> op het moment dat er wel child pages zijn dan moet de {$menustart}
>>> variabel
>>> worden gevuld met de huidige pagina id.
>>>
>>> Ik heb diverse zaken geprobeerd maar kom er zelf even niet aan uit helaas.
>>>
>>>
>>> Groet Paul Maas
>>> ______________________________**_________________
>>> TYPO3-UG-Dutch mailing list
>>> TYPO3-UG-Dutch at lists.typo3.org
>>> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-ug-**dutch<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch>
>>>
>> ______________________________**_________________
>> TYPO3-UG-Dutch mailing list
>> TYPO3-UG-Dutch at lists.typo3.org
>> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-ug-**dutch<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch>
>>
> _______________________________________________
> TYPO3-UG-Dutch mailing list
> TYPO3-UG-Dutch at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch



More information about the TYPO3-UG-Dutch mailing list