The problem is solved. I solved this by CSS.
But no one knew what I wanted.
I have 3 sites on the same CMS. Menu of each site is located in a separate folder (content type: section header).
Here are the sites:
1.
http://server.w3bmaster.ru/beratungsser ... anzierung/
2.
http://server.w3bmaster.ru/beratungsser ... sicherung/
3.
http://server.w3bmaster.ru/beratungsser ... ents-life/
Each site has its own template. In each template there is a tag like this: {menu childrenof="alias"}
I can't use params start level or another, because I need to show in each template its own menu.
So, this tag( {menu childrenof="alias"}) inserts a menu with all its items.
My problem was simple. Show the first level and second level ONLY FOR CURRENTLY active item (if second level exist).
So, I find in "module help" that parameter "collapse" solves this poblem. But when I added to the one template this tag({menu childrenof="alias" collapse="1"}) i saw the same situation. I saw menu with all items and subitems.(first level, second etc).
Param "collapse" works if I put in the template this tag: {menu collapse="1"}, but it doesn't work when i add param "childrenof".
Now I see, that active item has class "menuactive", so I solved it with CSS:
Code:
.menu .parent ul{
display:none;
}
.menu .parent.menuactive ul{
display:block;
}
But "hidden" items are still in HTML code. It is not neccesary now for me, but I would like to do it on the server side.