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

How to add JS code to entity form?

I have an entity. I need to execute some JS code when entity loads in a popup. Is there any way to add a custom JS/HTML code to an entity form via admin class configuration. E.g. to pass a template as an option
Ivan Fateev
  • 1,032
  • 1
  • 10
  • 26
5
votes
2 answers

Sonata Admin Dashboard: configure actions per entity

I'm using the SonataAdminBundle as base for an administration interface for a Symfony2 (v2.0.x) powered website. Entities which are added to the dashboard in SonataAdmin have the following actions by default: add list This works fine for most…
MicE
  • 5,038
  • 2
  • 29
  • 26
5
votes
1 answer

How to get image path in twig using SonataMediaBundle?

I'm using SonataMediaBundle to keep track of my images. I can render the image in twig using Sonata's helper: {% media user.profilepic, 'reference' %} This will render into an But, what I want to obtain is the naked path, so I…
George Irimiciuc
  • 4,573
  • 8
  • 44
  • 88
5
votes
1 answer

Exporting one to many relationship on sonata admin

I have tried to search online for a definite solution to this question but there's really no concrete solution for newbies out there. I have an Entry which has many EntryListing. In my EntryAdmin listMapper, i comfortably can list entries by a…
Masinde Muliro
  • 1,175
  • 3
  • 24
  • 38
5
votes
1 answer

Sonata media gallery

I try to make a web site with Symfony. So I installed SonataAdminBundle and SonataMediaBundle. And I have a question about Sonata media. I created a gallery with a lots of image media in it and I don't know how I can access it from my…
5
votes
1 answer

Customize the Sonata Admin Dashboard - Sonata and Symfony 2

I've followed this tutorial, and made it work : http://sonata-project.org/bundles/admin/master/doc/reference/getting_started.html. My Admin Class is displaying well, everything is working for the moment, that's fine. I've also added a custom logo on…
user2474622
5
votes
2 answers

Symfony2 - Sonata adminbundle menu won't show

.. What's up guys I've doing this project with Symfony 2.3.5 using FOSUSer Bundel and PUGXMultiUser Bundle and I wanted to use SonataAdmin Bundle but after configuration there was this problem about Menu that I could'nt see in the Dashboard .. Here…
5
votes
3 answers

Removing Sonata Bundles

I installed several of the Sonata bundles (user, admin etc) on my Symfony 2 app but after using them for a while, I decided I didn't like them and wanted to remove them. I've updated my composer.json and AppKernel.php files, removing anything to do…
Dan
  • 6,265
  • 8
  • 40
  • 56
5
votes
3 answers

How to install SonataDoctrineMongoDBAdminBundle properly?

I am really getting nervous because of lacking of enough resource for installing SonataDoctrineMongoDBAdminBundle and it's dependencies like sonataUserBundle. I have been trying to install this bundle for 15 days. I did everyting agaian and again…
5
votes
2 answers

The function "is_granted" does not exist in SonataAdminBundle

After installing Symfony2 cmf, when I tried to view the admin / dashboard I have the following error: The function "is_granted" does not exist in SonataAdminBundle :: standard_layout.html.twig at line 95
user896552
  • 53
  • 7
5
votes
1 answer

sonata_type_model / symfony form one to many relationship not saving

I have a one to many relationship between accounts and users. I am using sonata admin for CRUD. As I know, it uses Symfony forms to get the job done. I tried to add a field like this: ->add('users', 'entity', array( 'class' =>…
5
votes
1 answer

Symfony2 Sonata admin datatransformer

I'm trying to set a form type "sonata_type_immutable_array" as follows: ->add('metadatos', 'sonata_type_immutable_array', array( 'keys' => array( array('Test', 'text', array('required' => false)), …
5
votes
1 answer

Issues with Sonata Admin Bundle Logo

This is a weird problem I am facing. The Sonata admin bundle logo and the title are displayed on 2 different lines.. The following are the contents of my config file. sonata_block: default_contexts: [cms] blocks: …
user1584103
  • 193
  • 2
  • 15
5
votes
2 answers

Symfony 2.1 Sonata Admin Bundle OneToMany

Let's say I have two entities: 1. Product /** * @ORM\Table() * @ORM\Entity */ class Product { /* * @ORM\Column(name="name", type="string", length=255) */ private $name; /** * @ORM\OneToMany(targetEntity="Catalog",…
acid
  • 2,099
  • 4
  • 28
  • 41
5
votes
1 answer

SonataAdminBundle model_type values filter in filter form

I have such field /** * @ORM\ManyToOne(targetEntity="Town") **/ protected $town; and Admin class with such method protected function configureDatagridFilters(DatagridMapper $datagridMapper) { $datagridMapper …
striker
  • 1,253
  • 3
  • 15
  • 25