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

Sonata admin 3 : extends template gives following error “Variable ”base_template“ does not exist”

When I try to extend a template I have this issue: Variable "base_template" does not exist. Here is my code: {% extends base_template %} {% block javascripts %} {{ parent() }} {% endblock %} {% block content %} {% endblock %}
0
votes
1 answer

Remove already asscoiated values from choice list in sonata admin

I have an one to one relation in my sonata admin bundle. Person <-> Player. If i go to my Person admin i can choose the player from the choice list. If i go to another Person object the player (which is now already assigned) is shown again ... if…
Jim Panse
  • 2,220
  • 12
  • 34
0
votes
1 answer

FOSUser login error only in "prod"

I have a fresh install of Symfony with fosuser and SonataAdmin. I try to show the users in the admin. I have followed the explainations in the Symfony doc, and everything is well if I go the myapp/app_dev.php/admin. I log in, go to the admin and see…
wyllyjon
  • 505
  • 1
  • 5
  • 20
0
votes
1 answer

How to make custom route with custom action in sonata admin using Symfony

I am new in Symfony as well as sonata admin, I want to make a custom route with custom action in sonata admin.any one know how to make a custom route with custom action and how to call that custom route from twing file ?.
Sandeep Gajera
  • 229
  • 4
  • 14
0
votes
1 answer

Is it good practise to extract strings from framework standard syntax?

For example: In sonata admin, a single admin class has always recurring syntax like $formMapper->add('test', null, ['label' => 'testlabel']); $formMapper->add('test1', null, ['label' => 'testlabel1']); $formMapper->add('test2', null, ['label' =>…
Jim Panse
  • 2,220
  • 12
  • 34
0
votes
1 answer

Sonata Admin translation in batch action

I have some problems with translations in sonata admin. I configured the batch action in the next way: /** * {@inheritdoc} */ public function getBatchActions() { $actions = parent::getBatchActions(); $actions['import'] = array( …
Castor Duran
  • 309
  • 1
  • 16
0
votes
1 answer

Need just edit page not listing page in sonata admin

In my one module i have t display only global data and admin can edit it . I want to create module for that , but it is going to list page but i need direct edit page where admin can edit global values in sonata admin. Any idea ? Thanks in advance
Parth Khatri
  • 277
  • 1
  • 10
0
votes
1 answer

Uncertain Error Occurs in Symfony

I am doing my project in symfony. Sometimes when my pages load i got below error : Fatal error: Class Symfony\Component\HttpFoundation\Session\Storage\Proxy\SessionHandlerProxy contains 2 abstract methods and must therefore be declared…
Parth Khatri
  • 277
  • 1
  • 10
0
votes
0 answers

Sonata admin listing one to many in Edit form

Suppose that we have a category and products, when editing a category, we display a collection of products. Is there a way to list all related products with pagination? I tried to use the child admin, but that's not enough for me. - […
lmomar
  • 1
  • 1
0
votes
1 answer

Symfony Form Error

I am new in symfony and i have this error : The form's view data is expected to be an instance of class AppBundle\Entity\Competences, but is an instance of class AppBundle\Entity\CompetenceTranslations. You can avoid this error by setting the…
Parth Khatri
  • 277
  • 1
  • 10
0
votes
2 answers

Right way to change Sonata Admin Bundle Css?

I use the Sonata Admin Bundle with it's own bootstrap file. I am new to less, but I think I understand what it does. So, now I want change the main link color ( @brand-primary in variables.less ) of sonata admin. How and where should I do that ? We…
minychillo
  • 395
  • 4
  • 17
0
votes
1 answer

Reordering menu items with Sonata Admin Bundle + Event Listener

I have been working on a Symfony+SonataAdmin project, and we got stuck on Sonata KnpMenu ordering of elements. First we used both Sonada Admin for insertion on the menu and EventListeners to add more menu items based on other routes we needed there.…
0
votes
1 answer

How to inherit FormType in Sonata Admin?

How to inherit FormType in Sonata Admin? For example in src/AppBundle/Form/CityType.php: class SmsType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options) { $builder …
yeveb
  • 1
  • 1
0
votes
1 answer

Symfony 3 and Sonata Admin

I wish to know simply if it is possible to preload the create entity form with given values. My application has a Daily Schedule view with 30 minute intervals. I want the user to be able to click on a time (eg:12:30) on the Daily Schedule and have…
0
votes
2 answers

How to debug missing translations from sonata admin labels

How to detect missing or unused translations from SonataAdmin bundle? There is a nice tool in Symfony, to track missing/unused translations: php bin/console debug:translation en AppBundle However it can not recognize translations from SonataAdmin…
Maksym Moskvychev
  • 1,471
  • 8
  • 11