CMS Pages Navigation - Dokumentacja modułu Magento 2
Author: Mateusz Bereszczuk
CMS Pages Navigation Module
Module overview
Create widget that that improves maneuvering on your store. With our module your customers will have quick access to main cms pages of you store.
Module compatibility
This module is compatibile with Magento Community versions: 2.2 and 2.3.
How it works
After installing the module, new category will be added to Content section - CMS Pages Navigation. There, you can see Manage Pages label which leads to Grid, that will consist your future categories. To create your first category go to Add New Category.
Name – set name for category
Parent – set parent of your category, first categories must implement Root Category as parent
CMS Page – set page that user will be redirected to, categories with Root Category Parent have
no redirect option, as their function is to contain other categories, thus CMS Page
is disabled in that case.
Position - set a number to sort your categories
Status – turns on or off visibility of category
Now create few categories, your grid may look like this presented below.
Space before Name means that category’s parent is different from Root.
When categories are created go to Content > Elements > Widgets to create CMS Pages Navigation Widget. Click on Add Widget button, then in Settings form choose type as CMS Pages Navigation. Then proceed with adding widget.
Your newly created widget with CMS Pages Navigation may look like this.
Installation
Composer
- Add repo to composer.json:
"repositories": [
...
{
"type": "vcs",
"url": "git@git.auroracreation.com:aurora-modules/cms-pages.git"
}
...
],
- Add package to composer.json:
"require": {
...
"aurora/cmspagesnavigation": "*"
...
},
- In Magento root folder run commands:
composer update aurora/cmspagesnavigation
php bin/magento module:enable Aurora_CmsPagesNavigation
php bin/magento setup:upgrade
Manual
- Unzip archive.
- Upload extension files on your server to:
{Magento root}
└── app/
└── code
- In Magento root folder run commands:
php bin/magento module:enable Aurora_CmsPagesNavigation
php bin/magento setup:upgrade