By Bob Nguyen on
Hello,
I have a Content Type Slide contains Title, Image and Body (a text line).
I also have a view block viewSlide displays the images of the Slide as links. By default, clicking on an image will take us to the Slide node.
Now I want to link the images to different selected nodes, let say:
Image1 links to an article rather than Slide 1
Image2 links to a different Content type node rather than Slide 2
Image3 links to homepage rather than Slide 3
Is there any neat way could to the task?
Thanks
Comments
You can add a text field to
You can add a text field to the Slide content type and enter the path you want the images to link to in each node/slide. Then add the field in the view block, hide it, remove the link of the image that is currently there (I think it's a checkbox) and rewrite the image field to something like this:
<a href="[pathtextfield]">[image]</a>The ordering of the fields in views needs to be correct: The (hidden) path textfields needs to be listed before the image field that is using it.
Thanks a lot, steeph
It is possibly a "basic" issue of "advance" Views or an "advance" tech of "basic" Views. I have read some books and found the solution in "Rewrite output Fields". It was exactly what you said.
It works well now :)