Hi
I have been trying to configure the menu of my site, but some problems have bothered me lately.
My structure of menu is
A
--A1
--A2
--A2a
--A2b
--A3
B
C
--C1
--C2
Now I want my menus to be displayed in the following manner:
1. I want the menu to always display only parent menu-items i.e. A,B,C (not showing the sub-categories, which is the default case in drupal)
2. Only when 'A' is clicked it should show menu-items A1, A2 (without its parent i.e. 'A' or its sub-categories i.e. A2a, A2b).
3. And when A2 is clicked it only lists menu items A2a, A2b.
I got somewhat close using SlicedMenu. But the problem is that if the menu-item does not have sub items, the block won't be displayed. Hence I am unable to move to the lowest child of the menu (as it is not visible).
I also tried the module Menu Trim, but somehow it was not working. Well this too has the same issue as 'SliceMenu'.
Please suggest me a solution to this problem. I do not know if I am on the right track with these two modules, or there is something additional that I need to look into.
Thank You
Comments
You describe the default behaviour of Drupal.
The problem seems to be that you can’t display A2a, A2b.
Can you post the paths of the menu items that don’t expand, and their children?
Drupal does not trim the
Drupal does not trim the parent menu-item ones the sub-category is clicked. For ex:
Consider the 'administer' menu-item. When clicked it comes as
Administer
Content Management
Site Building
Site Configuration
User Management
Logs
Help
Rather I would appreciate that the menu would become only the sub-categories (i.e. without any parent menu-item or its siblings) once 'administer' was clicked.
-------------------------------------
As you said my problem is that I cannot display the A2a and A2b, as well as A1,A3,C1,C2 because they are without sub-items. This is because the SlicedMenu module has this limitation.
As for the actual paths of my required menu are as follows
So in both cases the children won't display. And I have no means to reach them through the menu if I implement the 'SlicedMenu' module.
(Sorry but if you were asking for url paths of the menu, then I don't have any, because this is on local)
Thanks & Regards
Some ideas
Perhaps you can use these handbook pages for inspiration (perhaps using "display: none;")
Showing which Menu item you're on and Highlight the expandable section of a menu
Nancy W.
Drupal Cookbook (for New Drupallers)
Adding Hidden Design or How To notes in your database
NancyDru
Thanks Nancy
Thank you Nancy for the help. I hope this documentation will be helpful to me.
But as I believe this will take some time. Their is an immediate problem that has bothered me, that is when I do not keep my parent-item as 'expanded', it does not show the child-items once the parent is clicked. Is there something that I need to do to accomplish this?
Thanks & Regards
I found a solution to this
I found a solution to this issue at http://drupal.org/node/66152#comment-238535, i.e. using relative paths in custom menu.
But the problem still comes if I try to include 'forums' and 'image galleries' as menu-items for my customized menu. When I try to create sub-items for 'forum' and 'image galleries', I do not see the expanded menu when they are clicked.
Thanks & Regards
I think that paths are
I think that paths are what makes the expanding work properly.
If you change the paths to something like this;-
the expanding should work.
If changing the paths would mean they cease to point to what is intended, you can setup path aliases (eg. parent_1 » taxonomy/term/27+28+29+30+31+32) with core module Path, (I think).
This should solve the part of the problem that SlicedMenu Doesn’t – hopefully the two will work together.
Resolved issue but some issues remain.
Hi Zeta
I got the the sliced menu working. The problem was not with sliced menu module but generally with the custom menus, i.e. no children were seen if not forcibly expanded. I found the solution at http://drupal.org/node/66152#comment-238535.
But the problem still comes if I try to include 'forums' and 'image galleries' as menu-items for my customized menu. When I try to create sub-items for 'forum' and 'image galleries', I do not see the expanded menu when they are clicked.
I also read that another cause of this issue could be different items pointing to the same node. But I disabled 'image galleries' and 'forums' from 'navigation-menu' and tried. But no use. Is it that I need to completely delete these links from 'navigation-menu'? (if so, how, as there is no delete link for these items in Navigation-Menu ?)
Thanks & Regards
dept
Use Menu Restricter and have the dept to 1 in the settings.