If you need to add a custom link on you slide image using views you can do like follow :

I'd just create a view to display that image on my node type. Add another field to store the link in your node, then create a view with two fields, your link and your image. Arrange the fields in your view so the link is first, then the image.

Exclude the link field from display. When setting up your image field in the view you'll need to rewrite the results. Select "output this field as a link", and in the link path enter the token for your link field, that will be in the replacement patterns below.

Then to make sure your view is only showing the image and link associated with the particular node you are viewing, you'll need to add a contextual filter. Just add a filter for "Content: Nid" and select "Hide view" for when the filter is not available.

Then in your panel for your node display, remove the field that was displaying your image and add the view in it's place.

Comments

minoroffense’s picture

You're more than welcome to export that into the examples module and submit a patch if you like.

minoroffense’s picture

Status: Fixed » Closed (fixed)
mortona2k’s picture

Any idea why I'm getting this? The tags are closed with the url rewrite outside of them.

<div class="views-field views-field-field-slide-button-image">
   <div class="field-content">
      <a href="http://default/"></a>
      <div id="file-3618" class="file file-image file-image-png contextual-links-region">
         <a href="http://default/">
         </a>
         <h2 class="element-invisible"><a href="http://default/"></a><a href="http://cascade.dev/sites/default/files/imagefield_L6yXVQ.png">imagefield_L6yXVQ.png</a></h2>
         <div class="contextual-links-wrapper contextual-links-processed">
            <a class="contextual-links-trigger" href="#">Configure</a>
            <ul class="contextual-links">
               <li class="file-edit menu-item first"><a href="/file/3618/edit?destination=node/2704" class="menu-link">Edit</a></li>
               <li class="file-delete menu-item"><a href="/file/3618/delete?destination=node/2704" class="menu-link">Delete</a></li>
               <li class="manage-display menu-item last"><a href="/admin/structure/file-types/manage/image/display/persona_slideshow?destination=node/2704" class="menu-link">Manage display</a></li>
            </ul>
         </div>
         <div class="content">
            <img typeof="foaf:Image" src="http://cascade.dev/sites/default/files/styles/persona_slideshow/public/imagefield_L6yXVQ.png?itok=HHJAHQt8" width="600" height="400" alt="" title="">  
         </div>
      </div>
   </div>
</div>
Tsjippy’s picture

Issue summary: View changes

I do not get this to work.

Well, my slideshow is working but I have the following setup in my view:

Link
image
title

I a content type with those three fields, each of them can have unlimtited values.
I created a page with two images, two links defined, and two titles.

My flexslider now shows not just 2 pictures, but 8: picture 1, with title1 and url1, picture 1 with title 1 and url2, picture one with title 2 and url 1, picture one with title 2 and url 2. And than 4 more for picture 2.

How can I combine just picture 1 with url1 and title 1?