0

I would like to link an Image field to a specific view (created with Views) in a given view mode, under "Manage fields" tab, making this opportunity available only within a given content type and only one specific field.

I could also "hack" it into a given theme_image_... function, but I think it would be nicer to make it easily modifiable via the admin interface like this:

enter image description here

Maybe this could easily be done with a given or a custom module, but I don't know what would be a nice solution to this.

1

Here is an idea:

  1. On the content type hide the image from the display as you will show it with as an EVA field.

  2. Using Views EVA attach the image to the content type so that the image is visible again, don't forget to check the views arguments to that the right images is shown in the node.

  3. Re-write the image to be display as a link and there you can put the path to the view. Here you can also play with the image formatter as well.

2
  • Thanks, this seems like a good idea. I've never used EVA, so can you please be more specific? Another important question: doesn't it consume too much resources for this task to attach a view for a simple linking? Until then, +1 for your answer. :)
    – Sk8erPeter
    Sep 23 '12 at 13:04
  • Like using any other view you can always play with the view cache system. I have use EVA field for all the content type fields in some projects and I have never had a performance issue. BTW you can provably accomplish the same with panels, display suite or context modules, but since chances are you already have views in your project I like to keep the module count low.
    – Emil Orol
    Sep 23 '12 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.