PHPackages                             nivas/easyadmin-tree-list-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. nivas/easyadmin-tree-list-bundle

ActiveSymfony-bundle[Admin Panels](/categories/admin)

nivas/easyadmin-tree-list-bundle
================================

Plugin for EasyAdmin to show nested tree in list view

v1.0.0(3y ago)85522[1 issues](https://github.com/nivas/easyadmin-tree-list-bundle/issues)MITTwigPHP ^7.2|^8.0

Since Mar 27Pushed 3y ago4 watchersCompare

[ Source](https://github.com/nivas/easyadmin-tree-list-bundle)[ Packagist](https://packagist.org/packages/nivas/easyadmin-tree-list-bundle)[ RSS](/packages/nivas-easyadmin-tree-list-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (2)Used By (0)

easyadmin-tree-list-bundle
==========================

[](#easyadmin-tree-list-bundle)

EasyAdmin 3.x / Symfony 5.x compatible bundle which overrides default EasyAdmin index (list) templates and adds nested tree view on list for entities that use [Gedmo Tree extension](https://github.com/doctrine-extensions/DoctrineExtensions).

[![EasyAdmin 3 tree list bundle demo](demo.gif)](demo.gif)

In order to achieve nested tree view, your entity must implement nested Gedmo tree on entity and following properties:

- `root_id` property
- `parent_id` property
- `lft` (left) property
- `rgt` (right) property
- `lvl` (level) property

Example of such entity:

Notable mentions and some history
---------------------------------

[](#notable-mentions-and-some-history)

On many Symfony 4 projects, we used `2lenet/EasyAdminPlusBundle`'s tree view feature. As we migrated projects to Symfony v5 / EasyAdmin v3 and Symfony v6 / EasyAdmin v4 - we lacked this simple tree view feature and decided to make tree view work again.

Hopefully bundle will work on PHP 8, Symfony 6 &amp; EasyAdmin v4 as well (not yet tested).

History:

- [WandiParis/EasyAdminPlusBundle](https://github.com/WandiParis/EasyAdminPlusBundle) original bundle from which everything started
- [2lenet/EasyAdminPlusBundle](https://github.com/2lenet/EasyAdminPlusBundle) which forked `WandiParis/EasyAdminPlusBundle` and added tree view and made it work for EasyAdmin v1
- [uknight/EasyAdminPlusBundle](https://github.com/uknight/EasyAdminPlusBundle) which forked `2lenet/EasyAdminPlusBundle` and made it work for EasyAdmin v2

To achieve tree functionality in templates, really old [jQuery treetable Plugin 3.2.0](http://ludo.cubicphuse.nl/jquery-treetable) was used from Ludo van den Boom, just like in `2lenet/EasyAdminPlusBundle` bundle. Will check out how to replace it with something recent.

Installation
------------

[](#installation)

```
composer require nivas/easyadmin-tree-list-bundle

```

after installation your `bundles.php` will contain new bundle:

```
