Download the PHP package presta/sonata-saved-filters-bundle without Composer
On this page you can find all versions of the php package presta/sonata-saved-filters-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download presta/sonata-saved-filters-bundle
More information about presta/sonata-saved-filters-bundle
Files in presta/sonata-saved-filters-bundle
Package sonata-saved-filters-bundle
Short Description A Symfony bundle to allow user to save and share filters in Sonata Admin
License MIT
Informations about the package sonata-saved-filters-bundle
PrestaSonataSavedFiltersBundle
PrestaSonataSavedFiltersBundle will allow your Sonata users to save and share list filters.
Preview
On each admin, you can save current filters to a dedicated database entry, after naming it.
When you saved a filter, you can reapply it whenever you want on the admin it was created.
An admin exists where you can see, share, remove filters created in the application.
Installation
Install the bundle with the command:
Enable the bundle:
Configuration
Import our Javascripts in your project:
This step is highly dependent on how your public assets are built, imported. It's up to you knowing the best way to include it in your project.
Include our action template into the Twig template you configured to be your admin layout:
See related SonataAdmin documentation
Configure to doctrine that what entity will be attached to saved filters config/packages/doctrine.yaml
:
See related DoctrineBundle documentation
Add the admin to the menu, where you want it:
Finally, update your schema to create the tables required for our entities:
Or create a migration if you have
DoctrineMigrationsBundle
installed:
This project is supported by PrestaConcept
Released under the MIT License
All versions of sonata-saved-filters-bundle with dependencies
doctrine/orm Version ^2.7|^3.2
sonata-project/doctrine-orm-admin-bundle Version ^4.9
sonata-project/admin-bundle Version ^4.22
symfony/framework-bundle Version ^6.3|^7.0
symfony/validator Version ^6.3|^7.0
twig/twig Version ^3.5