I have attached a patch that adds new functionality to the Emvideo module. The patch creates a new display format Lightbox2: Node Title -> Full Size Video. This allows videos to be displayed as links that are then displayed and played within a Lightbox 2 popup when clicked. The new display format is available under the Display Fields section of content types containing a video related CCK field. It is also available under the Format section of video related fields in Views.
I have applied the patch to the latest dev version of Embedded Media Field and tested it locally - everything works as it should do. We also applied the patch to the most recent stable version of Emfield on a production site, and it works fine there also.
Please review the patch and consider adding this functionality to the Emvideo module, as I am sure it will prove useful to others.
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#1 | emvideo_lightbox2_link.patch | 5.94 KB | stephenh |
Comments
Comment #1
stephenh CreditAttribution: stephenh commentedWould help if I included the patch - here you go.
Comment #2
tizzo CreditAttribution: tizzo commentedThis looks like a fairly clean patch. For coding standards, however, we need to fix the following:
Should read:
Comment #3
yngvewb CreditAttribution: yngvewb commentedI would love to have this this functionality in 2.0, could we also make a "Lightbox2: _Link_ -> Full Size Video"?
Comment #4
Junro CreditAttribution: Junro commentedHello,
Patch #1 doesn't seem to work for me. I don't have the new format in view.
@tizzo ??
Needs work? These spaces don't change anything I think...
Embedded Media Field really needs to have this feature :)
Comment #5
korzh-nick CreditAttribution: korzh-nick commentedThanks for the job! But the codes are not valid for xhtml1 strict
Please advise if anything
Comment #6
Yuri CreditAttribution: Yuri commentedI also need this Lightbox2: Node Title -> Full Size Video but it is not available in the current stable EMfield module version 6.x-2.5
Is this idea abandoned?
Comment #7
bradallenfisher CreditAttribution: bradallenfisher commentedTo validate you need to take the div out of the span. It is pretty easy.
Just add the theme function to your template.php.
My theme is called aa so i put this at the end of my template.php file.
The only thing I changed was I replaced the divs with spans