Questions tagged [symfony-sonata]

The goal of the Sonata Project is to provide an e-commerce framework solution based on the Symfony (version 2 and 3) framework.

The goal of the Sonata Project is to provide an e-commerce framework solution based on the Symfony2 framework. Think of it as a toolkit based on Symfony2 components to make building e-commerce sites easy and fun!

http://sonata-project.org/about

599 questions
3
votes
1 answer

Sonata admin - Side menu not functioning

Specs: Symfony 3.3.2, sonata-project/admin-bundle: ^3.18, sonata-project/doctrine-orm-admin-bundle: ^3.1 I have implemented a custom Dashboard block by following this answer. It is working ok, but now the Sonata Admin's Side Menu is not…
Zuhayer Tahir
  • 1,798
  • 3
  • 13
  • 20
3
votes
0 answers

Disable other options if 'All' option is selected in Sonata Admin configureFormFields

In my select options All is the first option. How do I disable all other fields if 'All' option is selected And vice versa if any of other fields are selected disable 'All' option. (Optional) PushBroadcastAdmin.php protected function…
Zuhayer Tahir
  • 1,798
  • 3
  • 13
  • 20
3
votes
0 answers

Restrict users behavior by rows of entity

I am using Sonata Admin Bundle It can restrict users behavior like editing or viewing by Roles or ACL. This privilege is depending on each tables. However, I want to controll users availability by each rows. [For example] I have table/entity like…
whitebear
  • 11,200
  • 24
  • 114
  • 237
3
votes
1 answer

How to make a custom action inaccessible depending on the user - Sonata Admin

I have implemented the clone action just like in the documentation. How can I limit the access to the clone action to the user who created the object? I have already an access denied exception check in my action, but how can I now hide the button in…
Jack Coolen
  • 229
  • 1
  • 13
3
votes
1 answer

Sonata Doctrine Phpcr Admin Bundle: Change parent of node

I have problem with changing parent of document inside sonata admin. My document has property like this: /** * @PHPCRODM\Children(filter="teaserimage*", cascade="persist") * @var Image[] */ protected $teaserImages; .... /** *…
3
votes
1 answer

sonata_type_collection set default number of rows on page load

I make use of the sonata_type_collection for order rows inside my order. As soon as I create a new order I can click a button to add an order row. Is it possible to change it to automatically show 5 rows on page load instead of clicking the button…
Jack Coolen
  • 229
  • 1
  • 13
3
votes
0 answers

Sonata Admin Bundle: Dependencies & sonata_type_model_list

I have two Entities Contacts:
Atreides78
  • 577
  • 1
  • 7
  • 22
3
votes
0 answers

Filter/Sort with dynamic doctrine entity method in Sonata Admin list view

I am trying to sort/search in a sonata admin list view based on a dynamic, non-database held value on a doctrine entity, however I can't seem to get this to work. Ideally we can filter and sort by this dynamic value, however from this attempt (as…
Paul Tarr
  • 498
  • 4
  • 10
3
votes
1 answer

Issue with sonata_type_collection

I have included a related model in my admin as follows ->add('parameters', 'sonata_type_collection', array( 'type_options' => array( // Prevents the "Delete" option from being displayed 'delete' => false, …
Masinde Muliro
  • 1,175
  • 3
  • 24
  • 38
3
votes
1 answer

Sonata - missing user security status labels

I don't know why but since today Status labels just gone... I can change Status but there is no labels so I don't what I'm doing ;-) app\config\config.yml imports: - { resource: @MyProductBundle/Resources/config/parameters.yml } - {…
breq
  • 24,412
  • 26
  • 65
  • 106
3
votes
1 answer

Sonata Admin sonata_type_collection

I have an issue with Sonata admin form... I would like to insert music in a album with position... My issue is when I create an album... I can add many as I want AlbumHasMusic... But when I submit my form... Each AlbumHasMusic have a null album…
3
votes
1 answer

How to properly configure 'sonata_type_collection' field in Sonata Admin

In a nutshell: When I am using 'sonata_type_collection' in OneToMany relationship I have to specify the other side of the relation, which in the "create action" still does not exist and in "update action" could be set, but it is also possible to…
eroteev
  • 620
  • 1
  • 7
  • 17
3
votes
1 answer

Add form option in sonata admin class

How can I add custom option to formmMapper in sonata admin class? I have form related to entity in admin class. For some reason I want to add my own options to one of the field $formMapper ->with('tab.dimension') …
Piotr Galas
  • 4,518
  • 2
  • 21
  • 30
3
votes
1 answer

sonata admin custom list field (not from entity)

Sonata admin bundle documentation seems scarce and I did not find a way implement this. Goal: display boolean value in field list. Value should calculated for each object from other properties. I managed to implement this for datagridFilter as…
Aurelijus Rozenas
  • 2,176
  • 2
  • 28
  • 40
3
votes
0 answers

Upload an Image from CKeditor with SonataMediaBundle and CoopTilleulsCKEditorSonataMediaBundle

I managed to run the upload images via WYSIWYG CKEditor using SonataMediaBundle and CoopTilleulsCKEditorSonataMediaBundle. The Upload works very well for ADMIN users, but does not work for users with the USER_ROLE, Do you know how can I resolve…