0

I have created a product teaser using views and included images as one of the fields (by including *(Products referenced by field_product) Field: Images* ). In the settings for " (Products referenced by field_product) Field: Images " I linked the image to "content". But the result is something different. Instead of linking the image to "original content", Drupal is linking it to the edit page of that content. Please help me fix this problem. I want my "product Image" to link to its "original content(the product itself)".I Followed this procdure to create product teaser (Advanced Product Display Listing using Views).

1 Answer 1

1

You can follow these steps to achieve what you want.

  • Add a field in your views Content:Nid.
  • Rearrange the field & place above added field at the top of yours (Products referenced by field_product) Field: Images.
  • Edit (Products referenced by field_product) Field: Images & set Link image to Nothing.
  • Click on Rewrite results & check Output this field as a link.
  • Paste node/[nid] token in Link path.
  • Save it & you are done :)
2
  • should I select the "Link this field to the original piece of content " optin in "Content:Nid". Commented Nov 27, 2013 at 13:29
  • Great job Mr. RajeevK. Thanks a lot. It was of great help. Thank you once again Commented Nov 27, 2013 at 13:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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