When I create a Fields based View that includes YouTube it won't link to anything apart from the /media/x url.

It should link to the content - Content Title, pref by default. In old Embedded Media I think the View option I used was "Thumbnail linked to Content".

Cheers

Comments

ckani’s picture

Exactly the same problem I'm facing. Have you managed to find a solution?

biblos’s picture

same problem. Is there any solution?

apmsooner’s picture

Add nid as a field and exclude it from display. Make sure nid is above media in the field hierarchy so you can use it's token. Rewrite your media element as a link with path of node/[nid] and you should be good to go.

ckani’s picture

Status: Active » Fixed

Thanks apmsooner, explored and found out how to do this in views as described. I think media and it's plugins are great, but we just need a bit more documentation to help other users. I'm marking this as fixed.

Status: Fixed » Closed (fixed)

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

indreksi’s picture

Hi Ckani.

Can you explain what you did in views?

artatum’s picture

In my side, whatever I put in rewrite results as a link, node/nid or content/title nothing is took in account for Youtube thumbnails (but works on other fields)...

apmsooner’s picture

you should be using the tokens... so node/[nid] would be the correct way but you say you got it working for other fields so maybe thats not the issue. May be some settings overriding somewhere else in the field.

artatum’s picture

after doing and redoing the same things 100 times, it finally worked. I dont know why, I strictly did the same previously : media + Gallery block thumbnail... and my rewrite rules applied ! Strange...

brycesenz’s picture

subscribing - this solution saved me so much time!

bryancasler’s picture

For those interested I posted a similar question about how to accomplish this through the "Manage Display" tab, without having to resort to views.

#1294380: Linking problem in "Manage Display"

virtualgirl’s picture

Thank You a lot!

samwillc’s picture

I'm still stuck on this, I know how to use nid or link fields rewritten to link images to nodes but how do you 'unlink' the image in the media module? I still have those contextual edit/delete links next to my images in the view which is messing up the html output.

Thanks,

Sam.

**edit** http://drupal.org/project/file_entity_link <---- works as described :)