Hello,

I have a content type X with an image field and i've made a view to show thumbnails of these content type nodes.
Each thumbnail has a link to the correspondent node on the title but i want to put a link on the image as well.

How can i do that?

Thanks,
André

Comments

ergunk’s picture

In Views, in image field's settings, select "Content" from "Link image to" drop-down.


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)
AFFLemos’s picture

Hi Mediasur,

I've tried that before but it doesn't work. I click on the image in the views page and it doesn't link.
For example, in View's, under content: title, there's an check option to link to the content but not on content: image.

What do you recommend?

Cheers,
André

ergunk’s picture

Hi André,

There must be "Link image to" drop-down in your image's field settings and you should select "Content" from that drop-down.

Here is an example screenshot. If you don't see these options, something is wrong with your Drupal installation or settings.


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)
AFFLemos’s picture

Hi,

I know what i did wrong, the image field was a multimedia asset instead of a image.
I changed that and did what you said but the link to the content still doesn't work...

What else can i do?

Thanks Mediasur

ergunk’s picture

I don't know about multimedia assets. If you don't see options i mentioned before altough you have change it to Image; it might be a cache problem(Clear all caches.). Did you try to add a new Image field(to see if it works)?


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)
AFFLemos’s picture

Yes, i added a new image field with an image instead of a multimedia asset.

Went to Views, the options you mentioned appeared and i chose link to content but when i go the page, there's no link on the image.

Does it work for you?

ergunk’s picture

I just created an example View: http://www.mediasaur.com/en/view-test

You are probably missing something.


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)
AFFLemos’s picture

Hi Mediasur,

yeas i am missing something, the changes i've made in the view do not get saved.

See here:

http://drupal.org/node/1508778

I'm completely lost so i'm going to wait if someone knows...

Thanks my friend

ergunk’s picture

Hi Andre,

A few -might be silly- questions:

  • Are you sure that you click Save button on top of the Views page after you made changes?
  • Are you sure that you are using right fields(not similar other ones)?

And the last i can do is to modify your View directly. If some way(a second temporary and limited admin account?) i see and change View, i might be able to understand and -maybe- solve the problem.


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)
AFFLemos’s picture

It's even worst.

I had two more views. Each had a list of teasers. Each teaser had a title, a picture and a text.
The picture disappeared in all teasers in both those views!!!!!!
But not on the last view i've made.

You are turkish?? I've in your country for month travelling.
Istambul is the most amazing city i had ever been :)

Ok.

www.topgoalsoftheweek.com
user:teste
pass:teste100

Do what you can

ergunk’s picture

Yes i am Turkish and i am glad you liked Istanbul. :)

That account is not admin, so i can't see your View. If you can create a second admin account or share your User1 login info please don't write it here and share it with me via Contact form of my Drupal account. I am setting up multi site for testing and demo right now but i try to inspect your View as soon as possible.


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)
ergunk’s picture

I just added a block view to your "Day 19 to 25" view and it works without any problems. I published its block on Goals page: http://www.topgoalsoftheweek.com/goals


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)
AFFLemos’s picture

Did you do anything else???

In the meanwhile i went to the content type and change de display content to 2 panels and when i went back, everything is working.

AFFLemos’s picture

I know what was the problem!!

I had the teaser to display content and you put it to display fields and now it works!!!!

Thanks for your help Media!!!

Have a great weekend!,

André

ergunk’s picture

I changed Format from content fo Fields but i accidentally chose All displays. that is why your page fixed too. But i see you changed it to back Content. Let me check your content type and other settings. (And please install Admin menu for god's sake :)


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)
AFFLemos’s picture

I'm just trying new things by test and error method now :)

I don't like the admin menu ;)

AFFLemos’s picture

Ei media can you click on the pictures and see if understand the link error?

ergunk’s picture

Please don't change anyting till i finish. I change something then i see you changed it. This way we can even understand problem in a few months. :)


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)
AFFLemos’s picture

Ah ok Media,

i was thinking about other stuff and didn't realize you were still checking.

ergunk’s picture

I fixed your day_19_to_25 View. Please don't change it and make other views setting same with it.

Block view example:
http://www.topgoalsoftheweek.com/goals

Page view example:

http://www.topgoalsoftheweek.com/day-19-to-25

Problem is about multimedia asset field. I don't know where ti comes(i can't chack with limited user rights). I made "Goal images" field(field_goal_images) visible and used it in Views, that is why it works now.

You can change page for where to show Block view and change path in Page view. I used thumbnail image style for testing, you cna change it too.

Hope your problem solved this way.


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)
AFFLemos’s picture

Thank you very much Media

You were a tremendous help.

Cheers,

André

ergunk’s picture

Your welcome. :)

You can delete the account you created for me.


Mediasaur | http://www.mediasaur.com/en | http://twitter.com/mediasaur


Before asking for help, please read this http://slash7.com/2006/12/22/vampires/ and don't be a "Help Vampire". :)