link a slide/image to an external page

Permalink Browser Info Environment
hi there.

this is a very cool slider indeed!

wondering if there is the ability to link a slide to an external page - we are hoping to use it for a portfolio where the image clicks away to a different website. At the moment we can only see how to link the image to an internal page of the c5 installation.

thanks

Type: Discussion
Status: New
mashanab
View Replies:
sebastienj replied on at Permalink Reply
sebastienj
Hi,

I will include this feature in next the update. I think if the user adds an attribute text to an image containing a URL, the addon will automatically take this one. Do you think it's a good idea?


Thanks, Seb
mashanab replied on at Permalink Reply
mashanab
hi, i think it would be ideal if a person could input either an external url or internal link when they assign a clickthrough on the slide.
prema520 replied on at Permalink Reply
prema520
Hi All
Just in case anyone wants a temp workaround for this -- here's ours.
1. Create a new page attribute -- we called ours redirect_url.
Make it a text field. Put the url you wish to redirect your
slide to in this field
2. This page will not normally be seen so make it invisible
to autonav, search etc
3 Put the following code in the header of your template

<?php
$redirectUrl = $c->getCollectionAttributeValue('redirect_url');
if(isset($redirectUrl))
{
    header("location: redirectUrl");
}

4. Name the page appropriately
5. Go to your advanced slider and link the image to your redirect
page.
Bow to the deity in thanks for Concrete5

PM us if this is not clear
Kind regards
Prema
sebastienj replied on at Permalink Reply
sebastienj
Thanks Prema,

I'm trying to develop the gallery feature to roundabout, then I implement it on other sliders.
A big thank you for the snippets that will certainly help many developers.
prema520 replied on at Permalink Reply
prema520
Hi Sebastian!
Happy if it helps!
Thanks very all your hard work
Kind regards
Prema
marketingetc replied on at Permalink Reply
marketingetc
Has this been resolved yet? I just purchased the add-on (Feb 2012) and still don't see a way to link to an external page - we wanted one of our "slides" to link to a video on YouTube... but no luck.
sebastienj replied on at Permalink Reply
sebastienj
Yes, you just need to create a attribute with the handle 'link_url' and apply them to a file !

Let me know !

Seb

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.