Download the PHP package umanit/easyadmin-tree-bundle without Composer
On this page you can find all versions of the php package umanit/easyadmin-tree-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download umanit/easyadmin-tree-bundle
More information about umanit/easyadmin-tree-bundle
Files in umanit/easyadmin-tree-bundle
Package easyadmin-tree-bundle
Short Description Plugin to add category tree features for EasyAdmin
License MIT
Homepage https://github.com/umanit/easyadmin-tree-bundle
Informations about the package easyadmin-tree-bundle
Umanit EasyAdmin Tree Bundle
Plugin to add category tree features for EasyAdmin
Features
- [x] Display of content's entries as a tree structure on index page
- [x] Filter content's entries through a tree sidebar on index page
- [x] Provide a TreeField to manage tree structures on forms
Installation
$ composer require umanit/easyadmin-tree-bundle
Configuration
The templates paths needs to be declared in your Twig configuration :
This bundle relies on StofDoctrineExtensionsBundle, so make sure it is configured properly : documentation. You need to :
-
add tree extension to your mapping :
- activate the tree extension :
Usage
- Administer a category tree
- Add a tree sidebar
- Use TreeField in your forms
Administer a category tree
Create you category entity by extending AbstractTreeItem :
Create a CRUD controller for your categories by extending the TreeCrudController
Enable the Crud in your EasyAdmin Dashboard :
Add a tree sidebar
To enable the tree sidebar to an existing CRUDController, you have to make it extend AbstractCategorizedCrudController :
Use TreeField in your forms
You just need to add the field in the EasyAdmin configureFields function :
Screenshots
Tree structure on index page
Tree sidebar
TreeField in forms
TODO
List of needed improvements :
- fold/unfold categories
- reorder category items with drag'n drop
- prefill category in TreeField with current category in the sidebar
- improve front (design, css)
All versions of easyadmin-tree-bundle with dependencies
doctrine/dbal Version ^3.4
doctrine/doctrine-bundle Version ^2.7
doctrine/orm Version ^2.13
easycorp/easyadmin-bundle Version ^4.4
gedmo/doctrine-extensions Version ^3.9
stof/doctrine-extensions-bundle Version ^1.7
symfony/config Version ^5.4|^6.0
symfony/dependency-injection Version ^5.4|^6.0
symfony/doctrine-bridge Version ^5.4|^6.0
symfony/form Version ^5.4|^6.0
symfony/options-resolver Version ^5.4|^6.0
symfony/translation Version ^5.4|^6.0