It would be nice to have the plain URL (as entered while adding node) as views formatter. Could be used to create custom URLs for other fields etc.

cheers, Ronald

CommentFileSizeAuthor
#3 523860.patch2.11 KBmvc
#2 linkdisplaytype.patch2.81 KBrobloach

Comments

aaron’s picture

Assigned: Unassigned » aaron

Good idea. Should be easy enough; I'll try to get it next week.

robloach’s picture

Status: Active » Needs work
StatusFileSize
new2.81 KB

This is probably very backwards, but it's a start. It exposes a Display Setting called "Link to Video", which returns the URL of the video. Would be nice to have a "Link to Video" which is an actual link though.

mvc’s picture

Title: Plain Video URL in Views » Plain Video and Image URL in Views
Component: Embedded Video Field » Code
StatusFileSize
new2.11 KB

The patch in #2 worked perfectly for me. I also needed an equivalent feature for embedded images, so I followed this example and wrote a similar patch.

I agree that ideally this should return an actual link, but for now this is all I need (for a CSV feed display). Posting in the hopes that it's useful to someone.

mvc’s picture

For reference, here is the patch to the node import module which handles embedded media fields: #565424: Support for embedded media fields

jeffschuler’s picture

Status: Needs work » Needs review

Thanks Rob Loach and mvc.

I actually think you've gone about it the right way, so I'm changing to CNR.

Having the plain URL allows us to use it when creating links around subsequent Views fields.
Having the already-created <a> tag, on the other hand, would prevent us from using other fields as the link text.

jeffschuler’s picture

Status: Needs review » Fixed

And now I see that theme_emvideo_formatter_video_link and theme_emvideo_formatter_video_url are already in there...!

mvc’s picture

Status: Fixed » Needs review

@jeffschuler the emimage patch in #3 isn't committed yet.

aaron’s picture

Status: Needs review » Fixed

@mvc & @Rob Loach: thanks! got that patch committed... sorry it slipped off my radar :P

aaron’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev

to the 2.x-dev branch anyway...

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.