0

I created a Superfish menu in a test installation of Drupal (8.5.4) and want to import it into another install (8.5.5). How can I do this?

Is the navigation data stored in menu_link, menu_link_content, and menu_tree? I tried importing these tables into my new install, but when I try to "Place Block" in Block Layout - I don't see the old menu showing up as a Superfish block.

I also tried using the Menu Export module. But was unable to find the "Menu Export Configuration" page that they show in the image.

The new install is migrated from Drupal 7. So it lacks a config table. Where is the config installed? I think I need to copy the menu which is stored in a blob in the config table, but I don't know where to put it.

Note: The main question is "How can I export the menu"? To which the answer appears to be "Not possible." I'm still confused though as the menu information has to be stored somewhere. The other sub-questions are trying to get at pieces of the puzzle.

3
  • Ufff, that are many questions. Please try to narrow down your problem to one specific question. Otherwise this question simply is too broad to be answered in this site's Q&A style as it requires a lot of back-and-forth communication we can't and don't want to handle here.
    – leymannx
    Jul 6, 2018 at 10:42
  • Links are content I believe and not exportable out of the box. Menus themselves are exportable.
    – Kevin
    Jul 6, 2018 at 17:45
  • The main question is "How can I export the menu"? To which the answer appears to be "Not possible." I'm still confused though as the menu information has to be stored somewhere. The other sub-questions are trying to get at pieces of the puzzle. Jul 7, 2018 at 2:17

1 Answer 1

1

Both menu link items and custom block content are treated as content within Drupal core. That's to say, they aren't covered by the configuration management system.

In instances where it make sense to have menu link items or custom block content stored in the configuration system, there are modules out there to assist with this:

  • Fixed block content: Provides a way of having permanent custom content blocks without broken instances if the block does not exist.
  • Config menu link: A drop-in replacement for core's Custom Menu Links module.

There many other options to store menu/block data into the config system so it's worth your time to explore other options to find the one that best matches your scenario (especially since Superfish seems to be a part of it).

4
  • If the menu items are content, how can I export and import them? Jul 7, 2018 at 2:19
  • 1
    Drupal core won't let you (without trying to copy DB tables) The above example modules use the config management system to import/export.
    – Shawn Conn
    Jul 7, 2018 at 2:27
  • I'm up for copying the tables. Jul 7, 2018 at 4:52
  • Here is something I found - github.com/calbasi/migrate_menu - Not sure about the state of the solution though.
    – anoopjohn
    Nov 3, 2019 at 2:29

Your Answer

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

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