Closed (fixed)
Project:
Video Embed Field
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
22 Nov 2011 at 20:49 UTC
Updated:
24 Mar 2012 at 17:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
terry22 commentedHi, did you find a way to achieve this?
Comment #2
mototribe commentedthe workout is to add "node nid" field above the "video embed" field and then rewrite the output (link) to "node/[nid]"
Comment #3
Peter76 commentedDid anyone solved that problem?
Comment #4
sw3b commentedFor now I did #2 has well on my setup and it work. A bit of tweaking with EVA or DisplaySuite and it work.
But I think this is a feature who has to be implemented. Espacially in the display field of the node. Like you said, it should be like the image field. That way in teaser mode, for exemple, it would be possible to check a box, link to the node.
Comment #5
doomed commentedmototribe,
how exactly did you fix this?
i'm also looking for the same functionality, but i dont understand how you did it, unless you're talking about adding a TEXT link above the thumbnail.. is that it?
Comment #6
doomed commentedsw3b,
i'm using Display Suite for Drupal 7.
do you know how to enable the thumbnail link for Video embed?
Comment #7
sw3b commentedJust create a Views with all you arguments and display it has a block.
After that add a Display Suite Block to display your block you juste did in Views.
Go to the content type, and position you diplays suite block in your content.
If you did your views correctly it will work !
In my Views I add a field NID who is hidden and a field for the video. The argument is the node NID currently display, so you know exactly witch node to generate the thumbnail for. After that rewrite the link output of your video field to node/[nid].
Comment #8
terry22 commentedThank you for your help
Comment #9
jec006 commentedI do want to add this into the formatters directly inside video embed. Its on the list - thanks for the suggestions
Comment #10
wbobeirne commentedHere's a patch that adds the option (acessed via admin/structure/types/manage/video-post/display) to have clicking the thumbnail send you to the node page, the source of the video, or do nothing. I didn't add a colorbox option because you can just do that by changing the format.
Comment #11
jec006 commentedCommitted
http://drupal.org/commitlog/commit/25834/b71c98b3f10f58559369f04dde64b58...
http://drupal.org/commitlog/commit/25834/7e4492e91e56ee6c3596b269d3dde66...
Thanks
Comment #12
jec006 commentedComment #13
idflorin commentedThis is working but if you want to use path aliases you should change this line
$element[$delta]['#prefix'] = '<a href="' . $base_path . 'node/'. $nid . '">';to this:
$element[$delta]['#prefix'] = '<a href="' . $base_path . drupal_lookup_path('alias', 'node/'.$nid) . '">';This is just a quick fix.
Comment #14
jec006 commentedGood call - I should actually change this to run through l so we can get proper handling.
reopening to fix.
Comment #15
jec006 commentedFix committed here: http://drupal.org/commitlog/commit/25834/9c226468db02e57fc8399d3989784a1...