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
0 answers

Uploaded files disappear if a form has errors

I am using sonata-admin bundle and i have weird problem with uploading. I am not sure if it is related with Sonata or Symfony. I am not able to repopulate a file widget. If i have any errors the file which is uploded always disappear from my form,…
user1119698
  • 157
  • 2
  • 15
0
votes
1 answer

Sonata Admin custom action seems not using the custom controller

I'm trying to make a custom action but I'm gettin this error: Controller "Sonata\AdminBundle\Controller\CRUDController::editarDistribucionAction" for URI "/admin/test/tarifas/distribucionperiodos/6/distribucion/editar" is not callable. I have…
Carlos
  • 1,411
  • 15
  • 21
0
votes
1 answer

BreadcrumbListener::onBlock: error = The option "context" does not exist

In a Sonata PageBundle installation on top of a working application, going to .../app_dev.php/ yields event.DEBUG: Notified event "sonata.block.event.breadcrumb" to listener "Sonata\SeoBundle\Event\BreadcrumbListener::onBlock". [] [] app.ERROR:…
geoB
  • 4,578
  • 5
  • 37
  • 70
0
votes
1 answer

Modify existing schema for SonataPageBundle: page__site doesn't exist

After finally(!) adding SonataPageBundle to an existing app I get when going to the dev environment SQLSTATE[42S02]: Base table or view not found: 1146 Table 'volunteer.page__site' doesn't exist on running php app/console…
geoB
  • 4,578
  • 5
  • 37
  • 70
0
votes
1 answer

Sonata - Dyscriminator field

I want to use my dyscriminator field in a datagrid filter and when i us this i have the error : [Semantical Error] line 0, col 83 near 'type LIKE :t': Error: Class Djoo\MyBundle\Entity\Structure has no field or association named type Have you an…
0
votes
1 answer

Field image is not linked to an admin

I have two entities: Product and Image and many Products can have many Images so this generates a third table ProductHasImages. Entities are right as doctrine:schema:validate command outputs: Symfony > doctrine:schema:validate [Mapping] OK - The…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
0
votes
1 answer

Sonata Admin Forms with dynamic fields

My EntryAdmin form needs three or four extra fields for different Campaigns defined by users and handled via entity CampaignProperties then appended via ajax dynamically when corresponding radio button is checked. I have an EntryProperty table which…
Masinde Muliro
  • 1,175
  • 3
  • 24
  • 38
0
votes
1 answer

Show attached image after upload trough SonataAdmin

I have a Product entity mapped as follow: class Product { use IdentifiedAutogeneratedEntityTrait; use BaseEntityTrait; ...... /** * @ORM\ManyToOne(targetEntity="\Application\Sonata\MediaBundle\Entity\Media") *…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
0
votes
1 answer

Medias in CKEditor with CoopTilleulsCKEditorSonataMediaBundle

I managed to run the upload images via WYSIWYG CKEditor using SonataMediaBundle and CoopTilleulsCKEditorSonataMediaBundle. My question is, I do not understand what is the meaning of the elements of this syntax: CKEditor form fields: …
user3588551
  • 83
  • 10
0
votes
1 answer

sonata media change position in gallery

How to implement sortable in Sonata media bundle? I want to change position of images in my gallery. Now I only have =.
repincln
  • 2,029
  • 5
  • 24
  • 34
0
votes
1 answer

Symfony2 / Sonata SEO Bundle / og:image

Can't for the life of me seem to work this one out. I have added the following to my 'base' twig's head: {{ sonata_seo_title() }} {{ sonata_seo_metadatas()…
Doug
  • 1,850
  • 23
  • 50
0
votes
0 answers

sonata admin - how to give custom query to admin class

I Am Developing website using sonata-admin Bundle in Symfony2 I Have Two Entity UserOne(id,name,pass ...) And UserTwo(id ,user_one_id ,...) this two table are related by one two many using UserOne(id)->UserTwo(user_one_id) each records of user_one…
0
votes
1 answer

SF2: Secure route and deny access through exception instead of redirect to login

I'm working on a Symfony 2.4.4 project and I would like to secure an url through security.yml. Symfony default behaviour is to deny access and redirect to login but i would like to through an exception. Does any one know how should i accomplish…
peris
  • 943
  • 3
  • 20
  • 33
0
votes
1 answer

Sonata Block Bundle SimpleBlock rendering

I'm using SonataBlockBundle in my current project. I create a SimpleBlock and render it in my twig template with something like {{ sonata_block_render('name' : 'myBlock') }}. But the block consists of title and body, is there a way to render title…
enigma
  • 493
  • 2
  • 5
  • 18
0
votes
1 answer

Enabling tree browsing for custom content

I want to create a custom PHPCR document for a set of pages that I have in my website. I extended the SimpleCms/Page class and I created my object and persisted it using the document manager. I can see the content using node:dump command and in the…
MKoosej
  • 3,405
  • 3
  • 21
  • 29