Picture of Mick  Leyden
Clickable Graphic
by Mick Leyden - Sunday, 29 May 2016, 8:05 PM
 

Hi all,

In a couple of places in the module I am working on I need to link to external websites. At the moment the only way I can see to do this, is by inserting a link into a text component. Is there any way to make a graphic component clickable? A text link is functional but ideally I would like to be able to say 'click on the logo to visit the website' or something to that effect.

Thanks very much!!

Mick

Picture of Matt Leathes
Re: Clickable Graphic
by Matt Leathes - Friday, 3 June 2016, 11:38 AM
 

Not out of the box - but it would be pretty easy to modify the graphic component to do this, just by editing the handlebars template to wrap the img tag in a hyperlink if one is specified in the .json

Picture of Mick  Leyden
Re: Clickable Graphic
by Mick Leyden - Monday, 6 June 2016, 3:20 AM
 

Thanks for the reply Matt.

Unfortunately that is a bit beyond my meager abilities. I might have to make do with what I have :-)
Cheers

Mick

Picture of Matt Leathes
Re: Clickable Graphic
by Matt Leathes - Monday, 6 June 2016, 8:56 AM
 

We can't have that, Mick! Updated template is attached...

This is how your .json should look:

Picture of Mick  Leyden
Re: Clickable Graphic
by Mick Leyden - Sunday, 19 June 2016, 11:09 PM
 

Hi Matt, Sorry for not replying, I have been working on other projects the last couple of weeks. Thanks very much for you help with this you are a champ!

I will let you know how I go

Cheers

Mick