Questions tagged [sonata-admin]

SonataAdminBundle is a Symfony bundle to generate robust user friendly administration interfaces.

Useful links

The Sonata Project is an open source set of bundles which are built on top of Symfony2. It's majorly based on the community work around the globe and uses the most known bundles released by:

2072 questions
6
votes
1 answer

Handling multiple file uploads in Sonata Admin Bundle

So, after research a lot and get no results (maybe I'm a bad searcher) I coming from this topics: SonataAdmin Bundle File Upload Error and SonataMediaBundle - how to upload images? I can't find a solution for my problem. I have a Entity Company and…
Reynier
  • 2,420
  • 11
  • 51
  • 91
6
votes
3 answers

Symfony2 Sonata Media Bundle Custom Image Cropping

It seems that Sonata Media has only two strategies when it comes to cropping/resizing the uploaded image, Sonata\MediaBundle\Resizer\SimpleResizer and Sonata\MediaBundle\Resizer\SquareResizer. Both these strategies are automatic, meaning that the…
Aman Varshney
  • 820
  • 1
  • 9
  • 26
6
votes
1 answer

How to implement a gui for yaml configuration in sonata admin?

For my current project it will be helpful to have an gui (simple form) where some defined yaml configuration file can be edit in the sonata admin backend. In the admin dashboard I'd like to have group with settings. There I wanna have some links to…
sensi
  • 569
  • 4
  • 15
6
votes
3 answers

Sonata Admin List View, make more headers sort buttons?

I have an Admin class which has this definition of listFields: protected function configureListFields(ListMapper $listMapper) { $listMapper ->addIdentifier('type') ->add('created_at', 'datetime') …
Jessica
  • 7,075
  • 28
  • 39
6
votes
2 answers

Display items on dashboard according to user role

I'm new to Symfony2, and for the needs of my company I'm using Sonata Admin and User bundles. I would like to know if it is possible to hide or show items on the dashboard according to the role of a logged user. For example, I have several entities…
6
votes
2 answers

Sonata Admin type_collection & cascade validation

I am having a problem with implementing the one to many relationship in the sonata admin with the following structure. ->add('adhesions', 'sonata_type_collection', array('by_reference' => false,'required' => false), array( 'edit' => 'inline', …
java
  • 61
  • 1
  • 3
6
votes
2 answers

Route "admin/login" does not exist Error Symfony2 + SonataAdminBundle

I followed a tutorial to set up SonataAdmin and FosUer FosUser seems okay for the connection and the disconnection However for Sonata I can't access to >my_host/web/app_dev.php/admin/dashboard When I try the firewall redirect to :…
Morgan
  • 61
  • 1
  • 3
6
votes
2 answers

SonataAdminBundle with sonata_type_collection and upload image

In Sonata Admin, I want to use upload and preview picture file in sonata_type_collection. In my Admin/ItemAdmin.php : class ItemAdmin extends Admin { protected function configureFormFields(FormMapper $formMapper) { $formMapper …
John_iw2
  • 61
  • 1
  • 3
6
votes
2 answers

symfony2 translation sonata admin bunle

I tried to translate Sonata Admin Bundle Breadcrumbs and Tablename List headline. So far nothing worked :-( I put my own translation files in /app/Resources/translations and in the translations folder of my own bundle. I tried to put them in…
Lisa Riemann
  • 61
  • 1
  • 2
6
votes
1 answer

symfony2.1 bundle version confusion, for symfony and sonata admin / knp menu bundle

I want to use symfony2.1 for a new project. I try to install symfony2 with composer. But there were multiple errors/problems and so I have also questions for each problem in bold font style. Sometimes I don't know if I do it the right way. I want to…
timaschew
  • 16,254
  • 6
  • 61
  • 78
6
votes
5 answers

SonataUser - Extending Admin

I'm trying to modify the default admin of the User entity. Just need to remove certain fields from the form actually. I imagine this doc will be usefull for me when it'll be available. For now I have created this admin and tried to override the…
Pierre de LESPINAY
  • 44,700
  • 57
  • 210
  • 307
5
votes
2 answers

Sonata Admin Dashboard: configure actions per entity

I'm using the SonataAdminBundle as base for an administration interface for a Symfony2 (v2.0.x) powered website. Entities which are added to the dashboard in SonataAdmin have the following actions by default: add list This works fine for most…
MicE
  • 5,038
  • 2
  • 29
  • 26
5
votes
3 answers

Symfony 2 form extra fields

Im changing some fields via AJAX and when im trying to save a form i recive a error that Extra fields are not allowed. How to change that validator property like validatorPass() in sf1.4 ? Or its possible change to form to accept extra fields ? Im…
Pawel
  • 1,672
  • 2
  • 18
  • 24
5
votes
1 answer

Sonata Admin - change order parent categories

In my webapplication I have the following category structure:
nielsv
  • 6,540
  • 35
  • 111
  • 215
5
votes
0 answers

Sonata Admin - CollectionType and Dynamic add Abstract class

I work on a Symfony 3.4 project and I have a issue with a specific Sonata Admin case, here is my situation : I have a Lesson entity who have elements : /** * @ORM\OneToMany(targetEntity="App\Entity\Lessons\ElementLesson", mappedBy="lesson",…
ArnoSr
  • 51
  • 2