I've found the following phrase in the documentation for module:

"By default, Node Gallery supports image uploads in the Item content type, but by changing the File Entity module configuration, it's possible to support other media types like video and audio".

So, if I can find any instructions how I can make a support for video and audio files?

I really-really needed to make audio-video support for this module so I made in a quite a bulk and not really comfortable way. But somehow it works.

I added the new fields to the nodetype gallery item. Why new? Because they display in different ways in a node and in views.

the fields
audiofiles (mp3)
youtube-vimeo links
flv-mp4 videos that I can play with jwplayer (flv, mp4)
videofiles that I cannot play in a player (avi, wav, wma, ogg, wmv, mpg, mkv)
another documents (doc, docx, xls, xlsx, zip, rar, rtf, txt, pdf)

In attached files you can see the settings for
1) Manage Fields
2) Manage Display
3) Image Thumbnail Grid

If I have images in a gallery I upload them through auto mass uploader in a gallery. If I have the other files - like video, audio or another documents I have to upload them one by one, attaching every to a gallery. Though a module entityreference_prepopulate gave me an opportunity to add a link to a gallery "Add Media" so if I follow it, the created Gallery Item is attached to Gallery by itself.

But I am still very curious about this phrase in node gallery help "but by changing the File Entity module configuration, it's possible to support other media types like video and audio". If anybody tried to do this?

Thanks!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zengenuity’s picture

Status: Active » Closed (works as designed)

You should look for a tutorial on File entity. File entity has an interface for controlling the display of file fields under Structure > File types. You can have it display video files in video players, image files as images, etc. It doesn't support Youtube videos. There are view modes in that interface for Node Gallery and Node Gallery Thumbnail. Those are what get used to display nodes in the node gallery interface. By default, they are configured to support images only. Video and audio require the install of other player modules. Install one or more of those modules, and you can upload video files and have them displayed in Node Gallery.