Closed (fixed)
Project:
D7 Media
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2011 at 14:49 UTC
Updated:
23 Mar 2012 at 15:43 UTC
Media is only one module having is't own secure input formatter. It doesn't allowi CSRF to image uploader instead of INSERT or IMAGEPICKER modules.
But we need colorbox-enabled illustrations.
It would be nice to have option to use colorbox for image and video links made with media module.
Comments
Comment #1
mesr01 commentedHere's a Custom Filter that you may import (admin/config/content/customfilter/tools) to enable Colorbox on all Media tags inserted in a Wysiwyg editor. Don't forget to enable the filter in the Text Formats configuration. This custom filter must run before the Media filter. I did not intensively test it, but it's working well for me so far.
Edit 2011-jul-25: Also, 'Colorbox inline' must be enabled in the Colorbox configuration section.
Comment #2
rooby commentedSubscribing
Comment #3
Golem07 commented@mesr01
Thanks a lot for your solution which is basically working here.
However, my problem ist that e.g. images show in colorbox with the same size (image style) they already have in the node. So 100x100 thumbs are being displayed with these very dimensions in the colorbox as well which makes it kinda pointless to use. The corresponding setting in colorbox ('image style') doesn't seem to have any effect.
Am I doing something wrong or is this a limitation of they solution described here?
Thanks a lot in advance for your help!
Comment #4
nicolash commentedIs there colorbox support for media in general (not even inline)?
I can't find a field formatter or media styles setting to have a thumbnail opening a larger version in colorbox. Will I have to write my own style? Or is this something that could make it into media?
I know the media gallery module does this, but I've got a simpler use-case - just display a few images attached to a piece of content.
Still coming to terms with the whole media styles abstraction, so any pointers would be great.
Comment #5
nicolash commentedNever mind, suggestions in #1079300: showstoppers for using media module work well for now.
Comment #6
mesr01 commented@Golem07: A basic workaround (which I use myself) is to select the image style for the size you want in Colorbox and have your CSS shrink it to thumbnail size where thumbnails are needed.
Comment #7
kmadel commentedThere is also the new Media Colorbox module - a dev release should be available in less than 12 hours.
Comment #8
devin carlson commentedMedia Colorbox provides this integration and is now at release candidate 1.