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
16
votes
1 answer

disable action in sonata admin bundle CRUD

IS there a simple way to disable some CRUD actions for given admin class? E.g. I just want a list of users added via front-end without the option to manually add them.
Bartosz Rychlicki
  • 1,918
  • 3
  • 20
  • 41
16
votes
2 answers

Stop SonataAdmin / Symfony2 from creating empty objects with sonata_type_admin embedded admins

First of all, I'm not sure if this is a Sonata issue or a Symfony2 one, this is the first time I'm working with Sf2 forms to edit a relationship. Here's the problem: I have two classes, let's call them the old favourites: Car and Wheel. Car has an…
caponica
  • 3,788
  • 4
  • 32
  • 48
16
votes
2 answers

SonataMediaBundle - how to upload images?

Probably should be titled: "SonataMediaBundle - where's the missing howto?". I've made some admin backend with sonataAdminBundle and sonataDoctrineORMAdminBundle (and some other), most of the things worked as expected, but I left file upload and…
heliogabal
  • 613
  • 2
  • 7
  • 16
15
votes
2 answers

Sonata admin bundle order

How to change default entity order in SonataAdminBundle for list action? answer :) add this to your admin class protected $datagridValues = array( '_page' => 1, '_sort_order' => 'DESC', // sort direction '_sort_by' => 'id' // field…
rtyshyk
  • 942
  • 1
  • 15
  • 29
15
votes
2 answers

Entity's id of parent is not saved in a OneToMany relationship in SonataAdmin

I'm using SonataAdmin (and Symfony2) to manage my entities. I have a oneToMany relationship between one Step and many Tasks. Since one Step can contain many Tasks, when I create a Step, I want to be able to create many Tasks and I want those tasks…
Etienne Noël
  • 5,988
  • 6
  • 48
  • 75
15
votes
5 answers

Symfony2 - Give a default filter in a list of elements of Sonata Admin

I have a list of elements of type Vehicle and I show these elements with Sonata Admin. I allow to filter these elements by the "status" field, but I want that, when the list is showed, only the active vehicles are showed, and if somebody wants to…
Airam
  • 2,048
  • 2
  • 18
  • 36
15
votes
7 answers

Bundle "ApplicationSonataUserBundle" does not exist or it is not enabled

I need to install the SonataUserBundle to be able to install the SonataNewsBundle. I followed the installation Tutorial step by step but i got this error : ./app/console sonata:easy-extends:generate SonataUserBundle [InvalidArgumentException] …
skonsoft
  • 1,786
  • 5
  • 22
  • 43
14
votes
2 answers

Labels in Sonata Admin Bundle

I have started new with the sonata admin bundle. its very handy and easy to setup and use , but i can't seem to get the translation fixed for the default labels e.g link_add, link_list are coming instead of proper english labels. #SonataAdmin …
satin
  • 697
  • 2
  • 7
  • 19
13
votes
3 answers

Custom choices list of sonata_type_model field with Sonata Admin

I am using Sonata Admin and I have a field of categories and I need to show them in order like a tree in select: