[TYPO3] Where are the TS experts ??????

Aji Johannes aji.yahya at gmail.com
Tue Oct 10 02:05:04 CEST 2006


Hallo JoH schrieb:
>> yes i know it is bad idea to hide the whole level and shows only one
>> point if it has submenuŽs but i have a project and i must do a
>> navigation  like this.
>> an example is by:
>> http://www.sap.com/germany/solutions/index.epx
>> is you see : Lösungen >> mySAP Business Suite
>> by click on :mySAP ERP the rest of menu is hidding.
>>
>> i just want to make something like
>>
>>
>> CURIFSUB < .NO
>>       CURIFSUB  = 1
>>
>>       CURIFSUB{
>>               linkWrap = <li>|</li>
>> NO.doNotShowLink=1
>>       NO.doNotLinkIt=1
>>       }
>>
>> but NO.doNotShowLink=1 inside CURIFSUB{} doesnt work, may be there is
>> another way to rewritte NN properity inside CURIFSUB.
>> any idea????
> 
> What you need is called "conditions", and the one that fits your needs will
> be "treeLevel".
> If you are on levels < 2, the menu will have the default behaviour and show
> only the first two levels
> i.e. like this:
> 
> temp.myMenu = HMENU
> temp.myMenu {
>     1 = TMENU
>     1 {
>         wrap = <ul>|</ul>
>         NO = 1
>         NO {
>             wrapItemAndSub = <li>|</li>
>         }
>     }
>     2 < .1
> }
> 
> on the next level, the only visible part of the tree will be the first level
> plus the active rootline, while the rest automagically disappears (even
> though this is the worst kind of menu structure I have ever seen):
> 
> [treeLevel = 2]
> temp.myMenu = HMENU
> temp.myMenu {
>     1 = TMENU
>     1 {
>         wrap = <ul>|</ul>
>         NO = 1
>         NO {
>             wrapItemAndSub = <li>|</li>
>         }
>     }
>     2 = TMENU
>     2 {
>         wrap = <ul>|</ul>
>         NO = 1
>         NO {
>             doNotShowLink = 1
>         }
>         ACT = 1
>         ACT {
>             wrapItemAndSub = <li>|</li>
>         }
>     }
>     3 < .1
> }
> [global]
> 
> same thing for the next level but in this case the third level has to be
> crippled too:
> 
> [treeLevel = 3]
> temp.myMenu = HMENU
> temp.myMenu {
>     1 = TMENU
>     1 {
>         wrap = <ul>|</ul>
>         NO = 1
>         NO {
>             wrapItemAndSub = <li>|</li>
>         }
>     }
>     2 = TMENU
>     2 {
>         wrap = <ul>|</ul>
>         NO = 1
>         NO {
>             doNotShowLink = 1
>         }
>         ACT = 1
>         ACT {
>             wrapItemAndSub = <li>|</li>
>         }
>     }
>     3 < .2
>     4 < .1
> }
> [global]
> 
> And so on and so forth until you reach the maximum of available levels.
> You will have to add the rest of the necessary parameters like entryLevel,
> allWrap or whatever yourself though.
> 
> Have fun with it ;-)
> 
> Joey

Hello List,

many thanks for Joey that he post me the solution of my problem, it is 
really nice solution and working as i want.

this the script i get it from Joey and i change some little things in 
it, but it is wonderful. Thanks again Joey


thanks for all who wanted to help me. Ron Hall thanks too.



lib.navigation = HMENU
lib.navigation.entrylevel = 0
lib.navigation.excludeUidList =

  lib.navigation {

     1 = TMENU
     1 {
         wrap = <ul>|</ul>
         NO = 1
         NO {
           #  wrapItemAndSub = <li class="ebene-1-NO">|</li>
            linkWrap = <li class="ebene-1-NO">|</li>
         }
     }
     2 < .1
}

[treeLevel = 2]

lib.navigation = COA

lib.navigation{

10 = HMENU
10.excludeUidList =
     10 {
         if {
             isTrue.numRows {
                 table = pages
             }
         }
         1 = TMENU
         1 {
             wrap = <ul>|</ul>
             NO = 1
             NO {
                 linkWrap = <li class="ebene-1-NO">|</li>
             }
         }
         2 = TMENU
         2 {
             wrap = <ul>|</ul>
             NO = 1
             NO {
                 doNotShowLink = 1
             }
             ACT = 1
             ACT {
                 linkWrap = <li class="ebene-2-ACT">|</li>
             }
         }
         3 < .1
     }
     20 = HMENU
     20.excludeUidList =
     20 {
         if {
             isTrue.numRows {
                 table = pages
             }
             negate = 1
         }
         1 = TMENU
         1 {
             wrap = <ul>|</ul>
             NO = 1
             NO {
                  linkWrap = <li class="ebene-1-NO">|</li>
             }
         }
         2 = TMENU
         2 {
             wrap = <ul>|</ul>
             NO = 1
             NO {
                  linkWrap = <li class="ebene-2-NO">|</li>
             }
         }
         3 < .1
     }
}

[global]
[treeLevel = 3]
lib.navigation= HMENU

lib.navigation{
     1 = TMENU
     1 {
         wrap = <ul>|</ul>
         NO = 1
         NO {
             linkWrap  = <li class="ebene-1-NO">|</li>
         }
     }
     2 = TMENU
     2 {
         wrap = <ul>|</ul>
         NO = 1
         NO {
             doNotShowLink = 1
         }
         ACT = 1
         ACT {
             linkWrap  = <li class="ebene-1-ACT">|</li>
         }
     }
     3 < .1
     4 < .1
}


[global]


Regards
Johannes



More information about the TYPO3-english mailing list