1

I'd like to open my image fields which are linked to file in new tab. In veiws I mean. I set the image field as:

Rewrite the output of this field -> checked

Output this field as a link -> checked

<a href="[field_images]"  target=_blank>

but it does not work!!

also I used this module

https://www.drupal.org/project/image_link_to_file

but in image link list box there isn't anything except no link!! so it was not useful.

how can I do this?

| improve this question | | | | |
0

target should be target="_blank". You have missed double quotes I guess

| improve this answer | | | | |
  • no I've written correctly. I checked it again now. – shekoufeh Apr 21 '15 at 4:11
0

I used into my image field, in the REWRITE RESULTS->Text, the following: and it worked. When click on the image the view page is loaded in a new window.

| improve this answer | | | | |
  • I used into my image field, in the REWRITE RESULTS->Text, the following: <a href="[path]" target="_blank"><img src="[field_XXX]" class="img-responsive"></a> and it worked. When click on the image the view page is loaded in a new window. – varoni Aug 3 '17 at 19:03

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.