seraph/menu-bundle-2.0

Menu Bundle that allows you to create menus, and manage them easily.

Installs: 37

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:symfony-bundle

dev-master 2018-07-20 09:39 UTC

This package is not auto-updated.

Last update: 2024-04-14 03:12:26 UTC


README

SeraphMenuBunlde is the update of Id4vMenuBundle on Symfony 4.

How it works

A Menu is a tree of MenuItems, this bundle allows the configuration of multiply menu.

All menus can have a different structure. With this bundle you can provide your own template or you can use the default template.

The default template use bootstrap 4, but you can override any parts of this to use anything else.

  • Menus :

    • A Collection of MenuItem.
    • A Name.
  • MenuItems :

    • A label to display.
    • A link go when clicked.

To read more about the using of this bundle, we invite you to check the docs

Installation

  1. Install it using composer

    $ composer require seraph/menu-bundle-2.0
  2. Add routing of the bundle

    # app/config/routes.yaml   
    
    seraph_menu:
        resource: '@SeraphMenuBundle/Controller'
        type: annotation
        prefix: '/admin' 
  3. Update your database with Menu and MenuItem

    $ php bin/console doctrine:schema:update --force

Documentation

You can find in this folder, how you can use the bundle :