[TYPO3] Menus - at the end of my string!
Tyler Kraft
headhunterxiii at yahoo.ca
Fri Mar 10 12:45:28 CET 2006
> Off hand, do you know where I might have found out about this on my own?
> Do people *really* sit down and READ the tsref?
>
yeah sadly sometimes it happens....
Matthew Runo wrote:
> I'd like to thank you for putting this up here. I've made a few tweaks
> to your code, and now it works perfectly.
>
> Off hand, do you know where I might have found out about this on my own?
> Do people *really* sit down and READ the tsref?
>
> I can't find anything in the docs on the new site =[
>
> --Matthew
>
> Peter Klein wrote:
>
>> Hi Matthew. I suggest you use a different approch, and use the
>> "numRows" property. Here's an example:
>>
>> -- cut --
>> lib.mrmenu = COA
>> lib.mrmenu {
>>
>> # Menu shown if current page got subpages
>> 10 = HMENU
>> 10.special = directory
>> 10.special.value.field = uid
>> 10.if.isTrue.numRows {
>> table=pages
>> select.pidInList.data = uid
>> }
>> 10.1 = TMENU
>> 10.1 {
>> wrap = <ul id="side-menu">|</ul>
>> NO {
>> linkWrap = <li>|</li>
>> }
>> }
>>
>> # Menu shown if current page doesn't have any subpages
>> 20 = HMENU
>> 20.special = directory
>> 20.special.value.field = pid
>> 20.if.negate = 1
>> 20.if.isTrue.numRows {
>> table = pages
>> select.pidInList.data = uid
>> }
>> 20.1 = TMENU
>> 20.1 {
>> wrap = 2<ul id="side-menu">|</ul>
>> NO {
>> linkWrap = <li>|</li>
>> }
>> }
>> }
>>
>> page.100 < lib.mrmenu
>>
>> -- cut --
>>
More information about the TYPO3-english
mailing list