A
A
Alex Me2016-01-25 18:22:55
Drupal
Alex Me, 2016-01-25 18:22:55

How to display an item in drupal in the main menu, in which there will be a submenu from taxonomy_menu?

Good afternoon) I’m completely noob in Drupal, but I seem to know how to google, but it didn’t help.
I need to get such a menu so that in one of its items (typical for drupal) I can display another menu (in this case, formed using taxonomy_menu)
I thought that menu_block would help me, but out of the box it apparently does not connect menus into such chains. And I haven’t learned how to use hooks yet, I need a little more time, but now it’s gone =)
Thanks for the help

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Borodin, 2016-01-25
@shumod

UPD: the taxonomy_menu module allows you to display a menu created from taxonomy terms in any sub-item of an existing menu. The required subitem is set in the settings /admin/structure/taxonomy/[name of your dictionary]/edit
Here is an example of how to display the menu programmatically in a block: dru.io/question/5549 You can
do the following: .drupal.org/project/taxonomy_menu display your menu. 2. Create your own custom menu 3. Create a block, as in the example. 4. Insert links from one menu to another. The devel module and the dsm function will help you with debugging. To use it like this: We got the menu and looked at what is in it:

$menu = menu_tree('main-menu');
dsm($menu);

A
Alex Me, 2016-04-08
@iamjack

I will unsubscribe the solution that I used, maybe someone will also have such a question (I decided a long time ago, but I forgot about the question here).
1) I broke the dictionaries, installed the taxonomy_menu module
2) Then I installed the tb-megamenu module and used it to connect the menus.
3) And of course I also set the menu block, but I don’t remember right now whether I used it in this bundle or not

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question