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
2 answers

Sonata Admin Bundle: Editable suggest field in list view

In the list field you can make a field editable by setting the attribute "editable" to "true" in the configureListFields action. Is it possible (with onboard sonata admin tools) to make a field editable that contains multiple values as in a…
Saerdn
  • 218
  • 2
  • 17
0
votes
1 answer

Is there a way to add a logo for sonata admin group?

I have installed SonataMediaBundle and SonataUserBundle. When I go to my admin dashboard I see a logo visible in the sidebar for each group (user and media). Then I have added an other group manually (event), but the logo displayed is just a folder…
Putxe
  • 1,054
  • 1
  • 16
  • 23
0
votes
1 answer

Exporting list view "as is" in sonata admin

In sonata it is possible to export list views to different file formats e.g. excel, pdf or csv ... This export is based on the database query running in the background. It does not consider that maybe a template is manipulating the output in the…
Jim Panse
  • 2,220
  • 12
  • 34
0
votes
1 answer

Form theme for "sonata_type_datetime_picker" not loaded in sonata admin

I am using Sonata Admin with some fields of the type DateTime and I want to use sonata_type_datetime_picker as described here. This worked very well a few days ago, but now it stopped working and I have no idea, why. Spend nearly a day on this now…
Thomas Kekeisen
  • 4,355
  • 4
  • 35
  • 54
0
votes
1 answer

Sonata Admin Bundle: CRUD templates are just simple tables?

I'm working with the Sonata Admin Bundle (Symphony 2.8) and I'd like to have the CRUD templates look like in the screenshot. It seems like it's a common thing which is already shipped with sonata but everytime I run the CRUD command (app/console…
0
votes
2 answers

Custom order for elements on Admin Sonata left sidebar

I'm trying to make the left side to have a custom order (not alphabetical). I have more Bundles and for each bundle I have a custom services.yml. In each .yml I have the order that I want, but Sonata makes a custom order (A-Z) for each group. How…
GasKa
  • 663
  • 5
  • 25
0
votes
1 answer

Sonata Admin local translation strategy for a list column

Is there an easy way to adjust a local translation strategy for a field added to a listMapper? So the column header will be shown exactly how it's been written in a label attribute without any gaps. BusinessUserAdmin.php protected function…
genesst
  • 1,333
  • 1
  • 10
  • 39
0
votes
1 answer

exception during the rendering of a template: "The block service `app.service.block.custom` does not exist"

I'm trying to build a custom block with Sonata, for the moment i'm just trying a simple block that just display text, but I cannot render the template as it seems that the service can't be found. I do have the block declared in…
JulienCoo
  • 1,128
  • 3
  • 13
  • 24
0
votes
1 answer

Symfony 2.8: How to prevent editing user's service fields

I'm newby in Symfony, so excuse my ignorance. In my project i use Sonata User Bundle, with User entity extended by several fields. Some of them can be edited by user himself, while others are serviceable and they can only be edited by the admin. The…
0
votes
1 answer

How detach relation without deleting entity in Sonata AdminBundle?

I have two entities: Specialisation and Course. One specialisation has many courses, so relations are "OneToMany" and "ManyToOne". I want to create specialisations and courses separately and then attach many courses to specialisation through…
0
votes
1 answer

Sonata admin dropdown with ajax data results

I am working on a sonata admin panel using symfony 3.3. I have two entities Category and Chalets. They are associated many to many so that One category have many Chalets and Chalet can be associated to many Categories. I want the functionality in…
0
votes
1 answer

show hidden select type with javascript

I work with symfony framework and I have two select Type: the 2nd select is initially Hidden and relative to the value of the first select the 2nd select will be displayed : for that I tried to do $this : Script
0
votes
1 answer

sonata admin one-to-many and many-to-one display list

I have a project about nurse and patients. Nurse goes around and visits patients. The problem that I'm facing is that the nurse wants to see a list of all the visits they did for a patient. I do have two admin pages, one is the patients admin…
CookieMonster
  • 73
  • 1
  • 9
0
votes
1 answer

Position of the entities in the sonata dashboard

I would like to know how to make sure that the element of my dashboard is on the right side as in the following image: At the code level, I entered my entities in the services.yml file as in the tutorial. On the other hand I do not know how to…
Lilith
  • 165
  • 1
  • 15
0
votes
1 answer

default data in sonata_type_model

I work with symfony 2.7 , and I use SonataAdminBundle. I have 2 entities called (Produit) and (Correspondant) with OneToMany relation, One Produit can have Many Correspondant. in the create form for the (Produit) I have correspondants to add Many…
1 2 3
99
100