1

I followed a tutorial to create an admin menu: Adding sub menu to Management menu. However I still cannot see my new menu on my page. Then I download a module named Administration menu. I found my new menu item on the navbar when I use this module. Here is the screenshot: enter image description here

All the menu in pink circle are old, the only new menu item is called "Product Substitue." But I cannot find on the page.

Does anyone know how to fix this? Or any tutorial? Thank you~

  • Did you flush all caches already? – longboardnode Nov 18 '16 at 13:33
  • @longboardnode Yes, already flushed several times – jmu Nov 18 '16 at 16:13
1

You're looking at the same information rendered in different ways:

The menu along the top is quite simply reading from the database for any link in that menu.

The page is constructing itself based on the hierarchy of the hook_menu implementation. You're going to need to implement hook_menu for your new link to get it to show on the 'page' version of the menu.

  • Ok. So...what you mean is I have to write a custom module for this menu, right? – jmu Nov 18 '16 at 17:54
  • That's correct. Unfortunately simply adding a link to the menu in the UI won't cause it to appear in the Admin pages. – HomoTechsual Nov 18 '16 at 18:31
  • You should consider asking a new question if you need help with the module: drupal.stackexchange.com/questions/ask – HomoTechsual Nov 18 '16 at 18:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.