This module helps to export and/or import menus. Using it you can easily transfer menus from one Drupal site to another. The module can be used in ensemble with Node export (node content migration). In this case, it allows to batch-arrange existing content into a given menu structure, using a very simple text file.

Here is an example of the JSON-like file format understandable by the module:

Pages {"url":"pages/all"}
- Site {"url":"","description":"Visit our site."}
- Story {"url":"node/3","description":"A very interesting story!"}
-- Some node {"url":"node/4","lang":"da","description":"Links is in Danish language"}
- Admin zone {"url":"admin/appearance","description":"Internal link with description."}
A page {"description":"Description only, no link.","hidden":true,"expanded":true}

Important: please use Unicode (UTF-8) as file encoding, one-byte national charsets will not work. Also, JSON's name and value must be enclosed in double quotes, single quotes are not valid. Trailing commas are not allowed.

D6 users:
The export feature is now implemented! You can export menus and import them in D7 installations (and D8 when relevant version will be ready)

Every line should start with a title or link level plus title. Level is determined from number of indentation characters ("-" and "*" are recognized only).

The part that goes after title is optional and may contain path alias or external URL (stub content creation will be skipped in case of external URL), menu item description, various options like hidden/expanded.

During the import you can select several options, including in which menu you would like this structure to be imported, menu/content language, and linking options.

Another features are Drush support and menu export.

Don't hesitate to view README file for more use cases and details! And try out the dev if the feature you are looking for is missing from the official release.

Drupal 6 version is not supported by me at the moment, and will have only important bug fixes.

Project information

  • caution Seeking co-maintainer(s)
    Maintainers are looking for help reviewing issues.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • chart icon11,580 sites report using this module
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.