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

overriding userAdmin by roles

I am developing a backend using SonataAdminBundle and I want to manage users by listing them by roles, for example a list of admin and a list of simple user. I overrode the user admin class (AdministrateurAdmin and SimpleuserAdmin) like…
0
votes
1 answer

Sonata admin bundle: order entity field in showMapper

I'm searching for the solution in a development within a Symfony project with Sonata admin bundle. 2 entities: Contacts and Tags (ManyToMany Relationship) Within the showaction of the sonata admin (tags entity), I'm unable to order the contacts…
de_bernie
  • 3
  • 2
0
votes
1 answer

auto calculate field value in sonata Admin Bundle

I use symfony + sonataAdminBundle for my application and I have an entity "Produit" with 2 inputs "PrixAchat" and "PrixVenteTTC" and another field called "marge" that I like Calculated his value in with a formula with the other input, this is why I…
0
votes
0 answers

Error symfony 2.8 page_bundle in sonata bundle

When I execute this command the created site functions normally php app/console sonata:page:create-site but when I create it with the graphical interface it shows me this error Warning: get_class() expects parameter 1 to be object, integer…
Yassine Abid
  • 81
  • 2
  • 7
0
votes
1 answer

get repository from Admin Class SonataAdminBundle

I work with symfony 2.8 and SonataAdminBundle, I want to view the users who are 'client' and here is my code: ClientAdmin protected function configureListFields(ListMapper $listMapper) { $result =…
0
votes
3 answers

Sonata admin bundle: display role wise sidebar menu

I successfully setup sonata admin bundle with acl editor. I am easily able to set user wise permission on object as well as roles users using acl editor. but when i trying to login using particular role then i cannot see in sidebar menu which i…
0
votes
1 answer

sonataadmin bundle FILTERING FIELDS AND CASE SENSITIVITY Not working . No attached service to type named `doctrine_phpcr_string`

I try to create case insensitive filtering using sonataadmin bundle and symfony 2 but i get an error. "symfony/symfony": "2.6.*" "sonata-project/admin-bundle": "^2.3", here is adminclass protected function configureDatagridFilters(DatagridMapper…
0
votes
2 answers

One to One relationship in SonataAdmin

i trying to make admin page for Product which has relationship 1:1 with image. Product /** * @ORM\Entity * @ORM\Table(name="products") class Product { /** * @ORM\Column(type="integer") * @ORM\GeneratedValue …
0
votes
1 answer

How to make all or few of the choices are selected by default

Sonata admin $formMapper choice: How to make all or few of the choices are selected / checked by default. /** * @param FormMapper $formMapper */ protected function configureFormFields(FormMapper $formMapper) { $denominationsList = array(10, 20,…
siva
  • 315
  • 2
  • 11
0
votes
1 answer

Empty Dashboard Symfony3 sonata adminBundle

Faced the problem of setting up the admin panel. I do everything according to the documentation, there are no errors, Dashboard opens and everything is empty. The project is simple as a door - the simplest blog. Nothing shows up - neither the names…
dmitry76
  • 7
  • 8
0
votes
1 answer

Removing Add new (create) button for specific route

I˙m ṫrying to remove Add new button for /stageserver/list route. I have tried with this code: public function getBatchActions() { $actions = parent::getBatchActions(); if($this->hasRoute('/stageserver/list')) { …
Bengall
  • 1,267
  • 2
  • 9
  • 13
0
votes
1 answer

Error You have a requested a non-existent parameter "sonata.admin.configuration.admin_services"

Installed AdminBundle on the documentation. When I try to clear the cache, I get an error You have a requested a non-existent parameter "sonata.admin.configuration.admin_services". Configured all the config files. I ask for help.…
dmitry76
  • 7
  • 8
0
votes
1 answer

Translate Sonata News bundle

I need to translate my blog, build on Sonata News Bundle. I have sonata translation bundle, but it's not implemented inside News Bundle. Maybe someone has same issue? What is the way to translate it ? Thanks.
Stopper
  • 566
  • 4
  • 11
0
votes
0 answers

Sonata admin adding more than one child entity

I'm having an issue in Sonata Admin Bundle (Symfony). When I want to add a child of an entity in the same edit form I expect that the add button add one input field for a child entity, but the add button is adding always the already same cuantity of…
Matias Vadino
  • 127
  • 1
  • 1
  • 8
0
votes
1 answer

Change item ordering in sonata_type_model

In my Admin I'v defined this: protected function configureFormFields(FormMapper $formMapper) { $formMapper /* ... */ ->add('camps', 'sonata_type_model', array( 'btn_add' => false, //Specify a custom label …
1 2 3
99
100