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

Add a custom controller entry in the Sonata menu

I'm trying to following this section on Sonata's official website to add a custom controller to my menu. What I have is a working controller; class HelloController extends Controller { /** * * @Template() * @param type $name …
Jack Coolen
  • 229
  • 1
  • 13
0
votes
1 answer

Sonata ecommerce custom product admin

I am using sonata e commerce bundle and I have added a couple of products. I can get them list and displayed in the admin section but when I try to create a new product I only see the basic field that all the products have. Is there any way to…
Miguel Carvajal
  • 1,785
  • 19
  • 23
0
votes
1 answer

SonataAdminBundle exports html instead of xls

I use SonataAdminBundle version 2.2.x@dev (commit 0d310108704c200f1542a00761ad3a884c24deb0) and when I export data in xml format - got html content in .xls file. Other format works well. Why it can be? Missed dependency on server or bug in…
Oleksandr Savchenko
  • 642
  • 3
  • 10
  • 35
0
votes
1 answer

Sonata Admin Bundle Search: NonUniqueResultException as Result

When I try to use the search-function in the Sonata Admin Bundle I always get: An exception has been thrown during the rendering of a template ("The query returned a row containing multiple columns. Change the query or use a different result…
Atreides78
  • 577
  • 1
  • 7
  • 22
0
votes
1 answer

Sonata | Custom field in ListMapper

I'm searching in Sonata doc but I can't find if it is possible. I have an Entity Question with one to many relation with Answer. In my ListMapper for QuestionAdmin, I would like to do something like : $listMapper ->addIdentifier('title') …
Aximem
  • 714
  • 8
  • 27
0
votes
1 answer

SONATA_TYPE_MODEL_AUTOCOMPLETE does not work

with sonata Admin bundle dev-master, I've relationship like Many Vote can be linked to only One PollingStation as the number of the PollingStation entities are so plenty (over 40000) I've to use SONATA_TYPE_MODEL_AUTOCOMPLETE (propose any best way…
0
votes
1 answer

Sonata admin display string matching integer values

I'm using sonata admin for my backoffice application. My entity has an integer field, each value has a meaning that I'd like to display in words. For instance, say that it has the opinion field, which can be 0, 1, 2 or 3. 0 means no opinion 1 means…
smarber
  • 4,829
  • 7
  • 37
  • 78
0
votes
1 answer

Symfony3 and Sonata-adminBundle:dev-master Admin route is not automatically generated

I'm using symfony3 and sonata-project/admin-bundle:dev-master. my problem is that when I generate an Admin class by the command line: sonata:admin:generate, now when I try to access the admin dashboard in order to see my admin class...I get the…
0
votes
1 answer

Sonata admin custom list action calls wrong method

As the name suggests, sonata admin custom list actions calls the wrong method. There are two admin classes AppleIdAdmin ITunesGiftCardAdmin there are two other controllers: PrintController SMSController each admin classes are able to send sms…
Aien Saidi
  • 159
  • 7
  • 25
0
votes
1 answer

SonataMediaBundle - where are the relations between Media and Gallery defined?

I have installed the bundle and everything is working properly, but I have a question. Where is the database mapping for the entities? Looking here, in the Entity folder of the bundle, these classes extend each their respective class for the Model…
0
votes
1 answer

Installing Sonata Page Bundle Error with Symfony 2.8.*

I am trying to install Page Bundle From Sonata Project. For some reason i cant install it because of the dependancy. composer require sonata-project/page-bundle Using version ^2.3 for sonata-project/page-bundle Problem 1 -…
mrhassan
  • 196
  • 1
  • 10
0
votes
1 answer

Symfony Sonata project: Input text collection JavaScript issue

I am trying to add collection of input texts with add/delete buttons on admin block. The problem is when I hit add button I get new 3 or 4 or even 5 new input fields instead of one! The js function setup_collection_buttons called more than once…
Tareq
  • 5,283
  • 2
  • 15
  • 18
0
votes
1 answer

Formatter in Sonata Admin

I just finished installing SonataNews with Formatter. But I can not configure a ckeditor even after the following steps: https://sonata-project.org/bundles/formatter/master/doc/reference/formatter_widget.html#advanced-formatter-widget
Nacer Naciri
  • 67
  • 2
  • 8
0
votes
1 answer

Unable to override Sonata User Bundle registration form

I keep getting an error while trying to override sonata registration template. I extended Sonata User Bundle with EasyExtendsBundle, so I now have src/Application/Sonata/UserBundle. EDIT: Symfony 2.7, Sonata Admin 2.3, Sonata User dev-master I added…
sylzys
  • 167
  • 1
  • 2
  • 14
0
votes
1 answer

Column "brands" does not apper on the edit form, why?

I have a dashboard developed on top of Sonata Admin Bundle and I'm having a issue. This is how the method configureFormFields(FormMapper $formMapper) looks like at CompanyAdmin admin controller: protected function configureFormFields(FormMapper…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363