[TYPO3-UG Dutch] Menu start punt

Paul Maas paul at pm-it.nl
Tue Nov 27 13:43:33 CET 2012


Jeroen,

Helaas heb ik dit project lokaal staan.

Mijn menu is als volgt

HOME
  ZORG
    ZORGCENTRA
      DE KLARK
        CONTACT
          FORMULIER
          ROUTE

Het werkt al voor een gedeelte. Als ik onderstaande code plaats gaat het
goed tot op het niveau:

Hiervoor moet ik de code die uitgecomment staat ook zo uit laten staan.

Wil ik nu nog een niveau dieper dan zou ik zeggen dat ik het stuk wat
uitgecomment staat moet gebruiken. In
dit geval wil ik dat hij weer de childs laat zien van Contact in dit geval
dus FORMULIER & ROUTE.
Dit werkt helaas niet ik krijg dan op niveau 4 altijd een leeg menu rechts.



### BEGIN MENU ###
[treeLevel = 2]
temp.RIGHT_MENU=HMENU
#temp.RIGHT_MENU.entryLevel=1
temp.RIGHT_MENU.special = directory
temp.RIGHT_MENU.special.value.data = uid
temp.RIGHT_MENU{
wrap=<ul>|</ul>
1=TMENU
1{
noBlur=1
expAll=1
NO=1
NO{
linkWrap=<li>|</li>
}
ACT=1
ACT{
linkWrap=<li class="active">|</li>
}
}
}
[global]

[treeLevel = 3]
temp.RIGHT_MENU=HMENU
temp.RIGHT_MENU.special = directory
temp.RIGHT_MENU.special.value.data = uid
temp.RIGHT_MENU{
wrap=<ul>|</ul>

1=TMENU
1{
noBlur=1
expAll=1

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

}
[global]



[treeLevel = 4]
temp.RIGHT_MENU=HMENU
temp.RIGHT_MENU.special = directory
temp.RIGHT_MENU.special.value.data = field:pid
temp.RIGHT_MENU{
wrap=<ul>|</ul>

1=TMENU
1{
noBlur=1
expAll=1

NO=1
NO{
linkWrap=<li>|</li>
}
ACT=1
ACT{
linkWrap=<li class="active">|</li>
}
}
temp.RIGHT_MENU.if.isFalse.numRows{
table=pages
where=pid=this
}
[global]




#
#[treeLevel = 4]
#temp.RIGHT_MENU=HMENU
#temp.RIGHT_MENU.special = directory
#temp.RIGHT_MENU.special.value.data = field:uid
#temp.RIGHT_MENU{
#rap=<ul>|</ul>
#1=TMENU
#1{
#noBlur=1
#expAll=1
#NO=1
#NO{
#inkWrap=<li>|</li>
#}
#ACT=1
#ACT{
#linkWrap=<li class="active">|</li>
#}
#}
#temp.RIGHT_MENU.if.isTrue.numRows{
#table=pages
#where=pid=this
#}
#[global]




Op 27 november 2012 12:50 schreef Jeroen Vermolen <jvermolen at live.nl> het
volgende:

> 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>
>>>> <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>
>>> <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<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch>
>


More information about the TYPO3-UG-Dutch mailing list