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

No entity manager defined for class DateTime

I have started using the Sonata Admin bundle and I was following the example on how to map an entity with the bundle to create an administrative interface. I created an entity called Post and this is the configuration yml…
Ende Neu
  • 15,581
  • 5
  • 57
  • 68
0
votes
1 answer

Retrieve a value inside a field using a custom twig / Select a column by it's block name / Sonata

I'll try to be clear as possible, as my question may not be simple. I have a Sonata GridPanel, modelled (simplified) like this: ~~~~~~~~~~~~~~~ Name | Type | Blob ~~~~~~~~~~~~~~~ Boby | Aaaa | Bbbb John | Cccc | Xxxx Let assume the column…
Stranded Kid
  • 1,395
  • 3
  • 15
  • 23
0
votes
1 answer

SonataAdmin - Page/Block rendering

I'm using the SonataAdmin Sandbox to test the CMS functionality, which is so far driving me insane I have created a site and a test page. Now I'm looking to add content. There is a content_top, content and content_bottom What I'm looking to do, is…
sipher_z
  • 1,221
  • 7
  • 25
  • 48
0
votes
2 answers

Unable to deal with MySQL column of type "SET" in Sonata Admin

I have a column in MySQL table defined as follows: `fuel_type` set('gasoline','diesel','LPG','CNG','ethanol','bio-diesel','hydrogen') DEFAULT NULL, I generated entities usingn doctrine's database introspection feature. The generated code in the…
eroteev
  • 620
  • 1
  • 7
  • 17
0
votes
1 answer

Change controller Sonata Admin

I'm trying to customize my dashboard of Sonata but although I can change the layout, I can't make the controller to be the one I want (and with that pass some other values). So sonata always loads the default on the CoreController and not the one…
0
votes
1 answer

Install Sonata Ecommerce

I am install Sonata Ecommerce bundle in my project for using Ecommerce functionality. I follow this doc : http://sonata-project.org/bundles/ecommerce/master/doc/reference/installation.html As per manual part when I Run the easy-extends:generate…
Kunwar Siddharth Singh
  • 1,676
  • 6
  • 33
  • 66
0
votes
1 answer

How to add route parameter in SonataAdminBundle Symfony2

I have added the following code in my Admin class, class ProductPriceAdmin extends Admin { protected function configureRoutes(RouteCollection $collection) { parent::configureRoutes($collection); $collection->add('price'); //I…
faisal nasir
  • 165
  • 4
  • 14
0
votes
1 answer

Issue calling javascript (ExtJS) in a twig extended a Sonata admin twig / Symfony 2

I'm quite new to php technology. I'm facing some issues I can't really get through. To sum up quickly, I've added a custom column to the admin list generated by Sonata Admin-Bundle. In this column, I have an icon of a map. For the moment, it is…
user2474622
0
votes
1 answer

Displaying a custom twig template with Sonata and Symfony2

For my need, I'm planning to add a custom column to a entity list. I've written this inside the configureListFields : ->add('_action', 'actions', array( 'actions' => array( 'code' => array('template' =>…
user2474622
0
votes
1 answer

How to add bundles in the Admin Dashboard Symfony2

I'm working on Sonata Admin bundles. I've configure the Admin Dashboard and the following components are showing in the "Symfony CMF" group, Here's the snapshot, I've gone through the Symfony CMF sandbox…
0
votes
1 answer

Symfony2 Sonata Project - SonataTimelineBundle Issue

I am using sonatatimeline bundle in my project. As per docs given by sonatatimeline bundle http://sonata-project.org/bundles/timeline/master/doc/reference/installation.html . I had followed the steps and it was successfully configured. I am…
Aman Varshney
  • 820
  • 1
  • 9
  • 26
0
votes
1 answer

retrieve additional informations about sonata image in twig

I'm using SonataMediaBundle. Is it possible to retrieve additional informations about images in twig? This sentence retrieve image: {% media item.image, 'big' %} Can I retrieve for example author, description, copyright etc.? I can set this…
repincln
  • 2,029
  • 5
  • 24
  • 34
0
votes
2 answers

Query at Sonata Admin

I'm using Sonata to make a backoffice and at configureFormFields, I want do a query to return some values. The query is well done and returns values when I use var_dump, but at the form I always get "Class does not exist". Can you help me? Here is…
peterfigwall
  • 3
  • 1
  • 5
0
votes
1 answer

Dashboard filter for an entity

I'm using SonataAdminBundle and I'm looking at trying to have a form filter on the dashboard. I have an admin service and I can use the filter in the list for my entity Locations Is there a way I can use the same filter on the admin dashboard, and…
user789122
  • 480
  • 5
  • 12
  • 25
0
votes
0 answers

Show Media Preview using Sonata Admin Bundle

I have a form in the admin that handles file uploads of different kind of media - video, audio and photos. I want to show a preview or maybe even provide a link to a modal of the file on the edit form. I've have my custom twig template below which…
Masinde Muliro
  • 1,175
  • 3
  • 24
  • 38