Image Show title not clickable but surrounding area is?

GK User
Thu Sep 18, 2014 5:52 pm
The area around the text is clickable but if I hover directly over the text and box the pointer returns to the standard arrow.
I don't understand enough about Joomla to know if this belongs here or in the 2.5 forum, sorry.
User avatar
Fresh Boarder

GK User
Sun Sep 21, 2014 10:42 am
Please try to replace the following fragment:

Code: Select all
if($G['slide_links']){
   wrapper.getElements('.gkIsSlide').addEvent("click", function(e){
      window.location = links[$G['actual_slide']];
   });
   wrapper.getElements('.gkIsSlide').setStyle('cursor', 'pointer');
}


to:

Code: Select all
if($G['slide_links']){
   wrapper.getElements('.gkIsSlide').addEvent("click", function(e){
      window.location = links[$G['actual_slide']];
   });
   wrapper.getElements('figcaption').addEvent("click", function(e){
      window.location = links[$G['actual_slide']];
   });
   wrapper.getElements('.gkIsSlide').setStyle('cursor', 'pointer');
   wrapper.getElements('figcaption').setStyle('cursor', 'pointer');
}
User avatar
Administrator

GK User
Fri Oct 31, 2014 2:23 am
Sorry Dziudek, your code snippet doesn't work for Storefront style in Image Show.

For those looking to add links to the text (captions) in Image Show for Storefront, you need to open, edit and replace /modules/mod_image_show_gk4/styles/gk_storefront/engine.js

Find and replace (around line 72):
Code: Select all
          if ($G['slide_links']) {
                    wrapper.find('.gkIsSlide').click(function(e) {
                        window.location = links[$G['actual_slide']];
                    });
                    wrapper.find('.gkIsSlide').css('cursor', 'pointer');
                }


with:
Code: Select all
          if ($G['slide_links']) {
                    wrapper.find('.gkIsSlide').click(function(e) {
                        window.location = links[$G['actual_slide']];
                    });
          wrapper.find('figcaption').click(function(e) {
                        window.location = links[$G['actual_slide']];
                    });
                    wrapper.find('.gkIsSlide').css('cursor', 'pointer');
          wrapper.find('figcaption').css('cursor', 'pointer');
                }


For what it's worth, I think this should be the default behaviour for the module. Seems illogical that the text is not linked but the surrounding image is? Just my opinion.
User avatar
Junior Boarder

GK User
Mon Nov 03, 2014 1:53 pm
I'll analyze this issue and solve it with the next Image Show release (it will be released in the mid-November with the new template).
User avatar
Administrator


cron