Hello.

Please add the feature with the ability to click on the slide or pager and instead of it taking you to the node, it goes to an external URL.

I've added a URL field and haven't found a way to override the node URL in both the slide and pager icons. Default mapping only seems to be when there is a Read More option.

Thanks.

Comments

ppblaauw’s picture

Status: Active » Postponed (maintainer needs more info)

When you add your URL field before the image field in the view_fields (change order) you can use the URL_field to rewrite the image field and let it link to the value in the URL_field.

Check: "Rewrite the output of this field" for the image field
You can now use the "Replacement patterns" for the URL field to rewrite the field.

Hope my explanation was clear enough and it helps you further, please let me know.

Yuri’s picture

I changed the field order as mentioned, used the rewrite box in the view field Content:image and tried to link a new URL field (field_url_url) to the image:


Only local images are allowed.

This does not work, even when I use quotations marks around the fields in the code.
Anyone has actually got this working?
The idea (for me) is that clicking the pager will forward to an external URL. But hovering the pager wil only change the slides.

Yuri’s picture

Sorry..here is the (not working) rewrite code I tried:

<a href="[field_url_url]">
<img src="[field_ddblock_if_image_fid]"/>
</a>
patrickroma’s picture

You have to put two Instances of the Same Link Cck Field in the View. One for Read more As title/link Default and One with URL. This worked for me.

derrynairn’s picture

I have entered the link field twice, as suggested above. Then I rewrote the title field with the 'Output this field as a link' option, entering the replacement pattern for the second instance of the link field. I saved, cleared caches, but the resultant published slideshow doesn't feature the link.

What confuses me is this: in the preview shown below the saved view, the linked title DOES work. In the published version, it doesn't. Furthermore, I rewrote the 'Read more' link successfully in the published version.

So that must be a CSS issue, I presume... Something is stopping the outputted link from working when the title is published and I don't know what or where to look. Any tips much appreciated.

EDIT: this was a Permissions issue. I haven't narrowed down why, but only the super user could NOT access the link on the homepage. When I logged out and viewed the page as an anonymous user, or any other access level, I could see and click on the links.