Questions tagged [sonata-media-bundle]

SonataMediaBundle is a main bundle of Sonata admin which handles all media providers like youtube,vimeo,dailymotion,files(all file types) and provides a structure to build custom media provider.The SonataMediaBundle is a media library based on a dedicated provider which handles different type of media: files, videos or images.

Each sonata media type is managed by a provider service which is in charge of:

  • retrieving media metadata
  • generating media thumbnail
  • tweaking the edit form
  • rendering the media

Each media can be linked to a context. A context can be news, user or any name you want. A context allows you to group a set of pictures together. As requirements can be different for each context, a context is defined by a set of formats and a set of providers.

As the infrastructure is not standard, the MediaBundle abstracts the filesystem layer and the cdn layer. Visit : https://sonata-project.org/bundles/media/3-x/doc/index.html for full documentation

195 questions
0
votes
1 answer

thumbnail SonataMediaBundle

What is the meaning of thumbnail in SonataMediaBundle, it's an image, image in cache, image resized ? especially in template : What is the difference between Render the thumbnail: {% thumbnail media, 'small' %} and : {% media media, 'small'…
user3588551
  • 83
  • 10
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

SonataMediaBundle and Amazon S3 not working

I'm trying to get SonataMediaBundle working with Amazon S3 service, I've tried the config as described in the bundle docs, but each time i try to upload a picture, i get this error: cURL resource: Resource id #1014; cURL error: couldn't connect to…
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

Foundation Zurb Interchange with Sonata Media Bundle

I'm currently attempting to incorporate Interchange by Foundation Zurb with Sonata Media bundle. The interchange documentation states you should do the following:
Doug
  • 1,850
  • 23
  • 50
0
votes
3 answers

sonata media bundle error

This error occurs when I add new image to gallery. The filter "number_format_decimal" does not exist in SonataMediaBundle:MediaAdmin:edit.html.twig at line 54 my config //app/conf/config.yml sonata_media: # if you don't use default namespace…
John Smith
  • 43
  • 1
  • 6
0
votes
1 answer

How can delete default block of SonataUserBundle or SonataMediaBundle in SonataAdminbundle list?

I do not know how can delete the default block of UserBundle, MediaBundle (just one of them...). This is my config.yml: dashboard: blocks: # display a dashboard block - { position: left, type:…
0
votes
1 answer

extend YouTubeProvider in SonataMedia

I'm using SonataMedia, SonataAdmin Bundle and YouTubeProvider to upload videos into media content. Part of Sonata\MediaBundle\Provider\YouTubeProvider.php file: //... 'cc_load_policy' => 1, 'wmode' => 'window' //... I want to change wmode to…
repincln
  • 2,029
  • 5
  • 24
  • 34
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
-1
votes
1 answer

Is there a way to selectively prune media providers from an admin interface in Sonata Media Bundle?

I am building a Page entity in a Sonata-based application, and I want inline editing screens for two types of media: YouTube videos and images. I am using sonata_type_collection twice to create two inline forms, each of which calls out to a Media…
-1
votes
2 answers

Internal page redirection in Symfony/Sonata

I'm trying to work on my sonata sandbox. The problem that I face this message internal page redirection when I try to reload profile or register routes.
famas23
  • 2,072
  • 4
  • 17
  • 53
-1
votes
2 answers

Sonata Media Bundle with Sonata Admin Bundle 3.0 (or 2.4)

I'm trying to find a combination of sonata bundles to work with both Sonata Media Bundle and Sonata Admin Bundle 3.0 (or 2.4), but with no success. The versioning on the official documentation is a total mess and does not help. My actual composer…
-1
votes
1 answer

SonataMediaBundle : allow user to upload link

I am fairly new to symfony and I am currently doing a school project with it. I have to make a functionality where my users can upload youtube link video (like a blog post but with a video). So I decided to use sonataMediaBundle to handle the upload…
Manapyzz
  • 11
  • 1
  • 3
-2
votes
1 answer

The association \Entity\Specialists#images refers to the owning side field Application\Sonata\MediaBundle\Entity\Media#spec which does not exist

class Media extends BaseMedia /** * @var Specialists * * @ORM\ManyToOne(targetEntity="Specialists", inversedBy="images") * @ORM\JoinColumns({ * @ORM\JoinColumn(name="spec", referencedColumnName="id") * }) */ private $spec; class…
-3
votes
1 answer

MediaBundle + CKEditor : Youtube video are not working

Hello i'am trying to use SonataBundle and CKEditor in a CMF project. I am not able to get the video in pages. Probably it is a problem of ckeditor when it generate the HTML. I want to know if i need to install a specific plugin to load sonata…
1 2 3
12
13