Skip to content

This Magento 2 module replaces the core top navigation menu, instead it renders the top level category and allows to assign CMS blocks to create the submenus.

Notifications You must be signed in to change notification settings

Space48/CmsMenu

Repository files navigation

CmsMenu

Scrutinizer Code Quality Build Status Code Coverage

This Magento 2 module replaces the core top navigation menu. Instead, it renders the top level category only and allows you to assign a CMS Block already created to replace the submenus.

prams___pushchairs___categories___inventory___products___magento_admin_at_winstanleys_pramworld

Installation

Manually

To install this module copy the code from this repository to app/code/Space48/CmsMenu folder in your Magento 2 instance, then you need to run the following commands from the terminal:

  1. bin/magento setup:upgrade
  2. bin/magento indexer:reindex

Using Composer

From the terminal execute the following commands:

  1. composer config repositories.space48-cms-menu vcs [email protected]:Space48/CmsMenu.git
  2. composer require "space48/cmsmenu" to install the latest version or "space48/SeoTitles:{module-version}" to install a specific version.
  3. bin/magento setup:upgrade
  4. bin/magento indexer:reindex

Using Modman (Good for development)

From the terminal execute the following:

  1. modman init (in case Modman already initialized there)
  2. modman clone [email protected]:Space48/CmsMenu.git
  3. bin/magento setup:upgrade
  4. bin/magento indexer:reindex

How to use it

Once installed...

  1. Go to the Content -> Elements -> Blocks and create or edit the block you want to use as a sub menu.
  2. Save changes.
  3. Go to the Admin Penel -> Products -> Categories and select the category you want to assign the sub menu to.
  4. Under Content section look for a dropdown option labelled Menu CMS Block.
  5. Select the block you want to use.
  6. Save changes.
  7. Flush Magento cache.

Troubleshooting

If you have done the previous steps and still cannot see the sub menus or you get an error message saying that cms_block_menu column is missing, try reindexing the flat tables related to categories.

About

This Magento 2 module replaces the core top navigation menu, instead it renders the top level category and allows to assign CMS blocks to create the submenus.

Resources

Stars

Watchers

Forks

Packages

No packages published