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~

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

1 Answer 1

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.

3
  • Ok. So...what you mean is I have to write a custom module for this menu, right?
    – jmu
    Nov 18, 2016 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. Nov 18, 2016 at 18:31
  • You should consider asking a new question if you need help with the module: drupal.stackexchange.com/questions/ask Nov 18, 2016 at 18:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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