Child pages
  • Administration Menus Configuration

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This administration page enables you to move, edit, disable and even create pages.


Image RemovedImage Added

Moving menus

Menus can be moved directly from the list. You can either click on the arrows in the "Position" column, or drag the row itself and drop it in the position you want it to have. As soon as you drop the row, PrestaShop saves the location automatically. You can drag the row when the mouse cursor is over the "Position" column.

...

Creating a new page or menu

Click on the "Add New Menu" button to reach the page creation form.

Image RemovedImage Added

This form has a handful option, some of which might prove complicated:

  • Name. Give it a unique name, because it will serve as an internal identifier.
  • Class. In short, a PrestaShop back office page is based on specific internal PHP files, which are called "admin controllers", and are most often stored in the /controllers/admin folder of your PrestaShop installation. When creating a new page, you must know which controller to target, and most importantly the name of its class – which is the name of its PHP file.
    For instance, if you want to create a page displaying PrestaShop's backup administration page, you must first find its controller name (in this case, AdminBackupController), and copy it in the "Class" field.
  • Module. In some cases, the administration controller for which you want to create a page comes from a module. In that case, you must also indicate the identifier for the module (in most cases, its folder name) and copy it in the "Module" field, in lowercase. This way, PrestaShop will know that it should not look for the controller in the /controllers/admin folder, but rather in the /modules/NAME-OF-THE-MODULE/ folder.
  • Status. You can disable a page at any time, but do note that it affects all the back - office users.
  • Parent. You can choose any menu, but for consistency's sake, make sure to pick one to which the page you are creating is relevant.

...