SonataMediaBundle | Symfony SonataMediaBundle | Web Framework library
kandi X-RAY | SonataMediaBundle Summary
kandi X-RAY | SonataMediaBundle Summary
Symfony SonataMediaBundle
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Adds the providers section .
- Get helper properties .
- Configure datagrid filters .
- List action .
- Configure form fields .
- Attach arguments .
- Handles the create action .
- Transform media .
- Generate path for media .
- Recomputes a single entity change set .
SonataMediaBundle Key Features
SonataMediaBundle Examples and Code Snippets
Community Discussions
Trending Discussions on SonataMediaBundle
QUESTION
PHP version:
...ANSWER
Answered 2019-Apr-29 at 08:30In the error log there is an URL being returned: https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#editor-destroy-iframe. This error means that you first remove the DOM for the editor (e.g. by destroying the modal first) and then you try to destroy the editor by calling CKEditor.destroy() method while it should be the other way around - you should destroy the dialog only after the editor instance is fully destroyed. You can used instanceDestroyed event for that e.g.
QUESTION
I use Symfony 4 (more precise 4.1) with SonataAdminBundle and SonataMediaBundle.
This is my config/routes/sonata_media.yaml
:
ANSWER
Answered 2019-Feb-21 at 07:47After some research I found the culprit and solved the problem. Here I'd like to share my knowledge.
As I mentioned in the question, the exceptions were thrown from:
QUESTION
An existing project on which I am working uses SonataMediaBundle. I like the Gallery option provided by that bundle, with one caveat: The gallery allows users to include not just images, but also media from three video providers (YouTube, Vimeo and DailyMotion).
How can I make the bundle only allow images as gallery media?
So far, I have tried searching GalleryAdmin.php for any reference to provider names, but I have yet to find anything obvious in there.
Edit: I also realize that I could just remove the providers I don't want from the sonata.yaml
file (and/or sonata_media.yml
depending on setup), but that would entirely remove them from the application, which is not quite what I want. I still want to be able to use the YouTube provider, for instance -- just not when creating image galleries.
ANSWER
Answered 2018-Oct-21 at 14:53After doing a bit of research, I came up with a workaround that isn't perfect but does the job. I added the following block to sonata_media.yml:
QUESTION
I am using the Sonata Admin back-end and I would like to add a new image field to my user entity which is an avatar. Since I am already using the SonataMediaBundle
I followed this tutorial: https://sonata-project.org/blog/2013/10/11/mediabundle-mediatype-improved
Here is my entity configuration:
...ANSWER
Answered 2018-Oct-04 at 09:48I resolved all the 3 problems! I put here my solutions for all those who have the same difficulties.
- In my back-end the preview is not shown:
As explained here I have to add a custom form widget to my config.yml
file:
QUESTION
before i was stuck with this problem the project was running on PHP5.6 on SF2.6.
now im using PHP7.1.20 with SF2.8. i installed apcu along with apcu_bc inside my docker container and enabled the apcu php module.
now the error is:
...ANSWER
Answered 2018-Sep-14 at 11:12... ... ...
its possible to just override the actual service ...
@/src/App/Bundle/Resources/config/services.yml :
QUESTION
Symfony2 returns No route found for "GET /nl" when I try to run http://localhost/nl
app/config/routing.yml
...ANSWER
Answered 2018-Apr-03 at 14:16You should enable locale in app/config/config.yml
QUESTION
I have a project that is using SonataMediaBundle, and I am working on the GalleryAdmin page. My goal is to only allow uploads of images, rather than allowing images and videos.
I have set up sonata_media.yml so that inline uploads of new media only allow images. However, if there are existing Media records that contain video -- YouTube records, for instance -- the gallery allows selection of those video items alongside images. This is not the desired behavior.
How do I change my GalleryAdmin (or other files) so that selection of existing Media records is not possible, and only fresh uploads are allowed? This would fix the problem.
====
Edit: To clarify, I basically want to remove the "List" button from my Media list view, leaving only "Add new" and "Delete."
...ANSWER
Answered 2018-Mar-02 at 10:39QUESTION
There are Sonata Admin with enabled SonataProductBundle. Product entity configured accordingly to documentation. But, upon attempting to create new "Product" in admin panel, "No object types available" button appears instead of edit form of.
Here are the configurations:
config.yml
...ANSWER
Answered 2018-Jan-25 at 13:57You get the same error cause you are maybe doing the same wrong? Look at your Simple Entity and notice the inherited Product class ... you define your Product class as abstract ... but your Product class is extending a BaseProduct class which is not shown in your post ...
This inheritance chain look strange to me. Can you check, your BaseProduct is not also abstract?
QUESTION
I'm making my first project Under Symfony 3.4 I'm currently looking to install Sonata News Bunfle to create a blog, I'm installing at the same time Sonata MediaBundle.
But I'm having a problem. I'm following the doc. End I'm having an error when running the command to generate entities.
...ANSWER
Answered 2018-Jan-04 at 14:54Check out the reference configuration of Doctrine Bundle: options auto_generate_proxy_classes
, naming_strategy
, auto_mapping
should be under orm
part.
QUESTION
I added this to routing.yml
...ANSWER
Answered 2017-Feb-25 at 10:44You can check all your route with following command:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SonataMediaBundle
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page