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

JoH info at cybercraft.de
Tue Oct 10 00:16:28 CEST 2006


> 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

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de
T3 cookbook: http://www.typo3experts.com





More information about the TYPO3-english mailing list