Organize & customize the Bootstrap Admin Navbar
PHP CRUD Tutorial

The Admin Sidebar can be organized from the Generator page
or directly edited from a simple JSON file..


Build & customize your admin panel navbar using the Generator

You can easily organize your tables into multiple categories, drag & drop the categories & tables, and choose any icon for each table.

Just watch the video tutorial to see how it looks.

Build & customize your admin panel navbar from the JSON file

The navbar categories & tables are stored in a simple JSON file in php-crud-generator/admin/crud-data/nav-data.json

Here's an example of JSON content:

{
    "navcat-0":{
        "name":"Customer Data",
        "tables":[
            "customer",
            "address",
            "city",
            "country"
        ],
        "is_disabled":[
            "false",
            "false",
            "false",
            "false"
        ]
    },
    "navcat-1":{
        "name":"Inventory",
        "tables":[
            "category",
            "film",
            "language",
            "actor"
        ],
        "is_disabled":[
            "false",
            "false",
            "false",
            "false"
        ]
    }
}

You can edit this file with your favourite code editor to:

  • change the categories names
  • add new categories
  • change the categories content

Note that the content MUST contain only your table names.
You CANNOT customize the table names here.

Prerequisites

To build & customize your admin panel navbar with PHPCG you must beforehand:

Back to the PHP CRUD Tutorials