HowTo - Manage a big number of categories

Edit on GitHub

Preface

The default Zed UI for the Category section comes in a form of a tree which is handy for managing nested categories, but impossible to use with a big number of categories. To cope with such cases, we’ve introduced a new Category section view in a form of a table where categories are listed, paginated and can be easily found by searching.

Installation

Perform the following steps to enable the view:

  1. Install the spryker/category-gui module by running the command:
composer require "spryker/category-gui":"^1.0.0"
  1. Once it’s installed, configure the Zed navigation to point to the new page. Insert the following code snippet into config/Zed/navigation.xml:
<?xml version="1.0"?>
<config>
    <category>
        <label>Category</label>
        <title>Category</title>
        <bundle>category-gui</bundle>
        <controller>list</controller>
        <action>index</action>
        <order>0</order>
        <shortcut>c</shortcut>
        <icon>fa-sitemap</icon>
    </category>
</config>