By mpalla on
Hi,
I'm using Drupal menu module, but I can't make it works properly. I'm creating my custom menu, adding menu items with sub-menu.
The problem is that if I assign a valid link to the top menu item, it indeed opens the right page, but it doesn't expand the sub-menu. Otherwise, if I assign a link, for example, to an empty taxonomy category, the empty engine-generated page is displayed and the menu expands properly.
How do I make it works properly?
Comments
Details
Details of what you're doing - the menu settings, the links, a link to a demo site - would help identify the problem.
here they are...
Work-in-progress site: http://lnx.artonice.it/
If you click on News (menu in left bar), the sub menu just appears, and works properly. But the link added to the News item is pointing to a no-contents area, so the drupal engine makes its standard empty page to appear. BUT if I change that link to a correct page (a node or a taxonomy not-empty category), the content is diplayed correctly, but the sub-menu do not appear...
I've tryed also offline without the multi-language add-on, or to create a new menu instead of adding voice to the navigation one, but the results are the same.
Hope this can help
Expanded ticked?
Have you ticked "expanded" in Menu item edit?
gpdinoz
"If you're not getting the answers you want maybe you're asking the wrong questions"
Regards
Geoff
no, because...
what I want is not an always expanded menu, but sub-menu have to appear after clicking on the relative item, just as you can see here in drupal site
expanded rule
Richard should correct me if I am wrong, but I think that you should look at the unaliased (ie. internal) paths and if the parent is a prefix of the sub item then it is expanded.
For example, if you have a taxonomy/term/1245 item and a node/789 which is tagged with the term 1245 then the subitem node/789 will not cause taxonomy/term/1245 to be expanded. It would cause node and not much else.
--
Read my developer blog on Drupal4hu.
--
Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.
the current situation is
I'm not sure I have understood what you mean, but the situation is the following:
News (taxonomy/term/4,5)
--European (taxonomy/term/4)
--World (taxonomy/term/5)
in this way, sub-menu expands. Changing News link to taxonomy/term/4+5 shows the correct page, but prevents the menu to expand.
If I open manually taxonomy/term/4 or taxonomy/term/5, the menu expands!
The final result I have to achieve is:
1. Assign taxonomy/term/4+5 or node/xxx to the News menu link.
2. Make the menu expands correctly, clicking on News or visiting the categories 4 / 5
Is there a way to do that?
Still confused...
I solve this problem even
I solve this problem even today. :)
Seems, menu module doesn't like "+" in URL. Use path module, set path aliases for every multi-term menu item and change path to aliases in menu configuration.
Works for me
I have set up a test site at http://mel01.juggernaut.com.au/drupal46/ to investigate this issue.
I can't see a problem with the way menu is working.
I have set up a few taxonomy terms (term1 and term2).
I have created a couple of pages using these terms.
I have created a page "node/5" which will be my news index.
The menu tree looks like:
News -> node/5
-- term1 -> taxonomy/term/1
-- term2 -> taxonomy/term/2
Whenever I click News the submenu opens up.
If I manually go to one of the taxonomy pages the submenu is open.
Even if I change News to point to a missing page, the submenu still opens up.
What is the "multi-language add-on" you are using?
Do you have any other contrib modules installed?
To see the problem, try to
To see the problem, try to set
News -> taxonomy/term/1+2
No contrib modules. No additional internal modules. Default configuration.
A fix
You need to manually escape the + in the URL. So set the News path to:
?q=taxonomy/term/1%2B2
Not very friendly... perhaps the menu or link system should do this automatically. I bet that's a can of worms!
still not working
I escaped the +, but it's still not working. I'll try to test it again from a drupal new installation as soon as possible and I'll post the results.
I use i18n for internazionalization.
No way
I've tried also starting from a new drupal installation, escaping the "+", but it seems there's no way to make it works.
I really don't know what I'm doing wrong, if someone has any ideas as what to do, where to check or how to do it another way, let me know.
Thank you all for the help you're giving!
Try entering a space instead
Try entering a space instead of the '+'.
It works!!!!
This way I can make the menu expanding while displaying the taxonomies... still looking for how to display a node :-)
(Edit) Found. Probably I missed something... Everything is working now.
Thank you all
Do you mean %20?
Do you mean %20?