Separate links for Briask ImageSlideShow module images - Joomla & VirtueMart Tips & How To's

How to get separate links for ImageSlideShow module images. The ImageSlideShow module from briask.com is an excellent and simple image gallery which shows any images from a designated folder.

Home Joomla VirtueMart Tips Separate links for Briask ImageSlideShow module images

Sun

13

Dec

Separate links for Briask ImageSlideShow module images
  • Joomla 1.5

The ImageSlideShow module from briask.com is an excellent and simple image gallery which shows any images from a designated folder and have one link from the images. Clients (and I see on Briask's own forum) have asked whether it would be possible to have individual links to individual images.
I've come up with a couple of ways.



Separate links for ImageSlideShow module Both ways are pretty primitive and involve naming the image file in a certain way that is then detected and provides the correct link. I'm sure it could be done more nicely but it works flawlessly.
The first way is if you want to link to different content pages within your own site or at least if the links are all similar except for a different id number each time.

First find the Joomla link structure that you want to link to. The url will be like
index.php?option=com_content&view=article&id=60&Itemid=32
so note each different id number you want to link to.

Then rename your images corresponding to the id number like so -
  • image60.jpg
  • image72.jpg
  • image84.jpg
Upload them to your image folder for the ImageSlideShow module.

The url in the backend ImageSlideShow module parameters will be
index.php?option=com_content&Itemid=32&id=
Open up the file modules/mod_briaskISS/mod_briaskUtility.php in your editor and go to line 325 -->
 
echo '<li><a href="'.$picURL.'"><img src="'.$picDir.'/'.$file.'" alt="'.$picTitle.'" /></a></li>';
 
Comment this out and add the following ->
 
$number = preg_replace("/[^0-9]/", '', $file); // ditch anything that is not a number
echo '<li><a href="'.$picURL.$number.'&view=article"><img src="'.$picDir.'/'.$file.'" alt="'.$picTitle.'" /></a></li>';
 

This simply finds the number in the image file name and adds it to the url.

Now the individual images will link to the desired pages.

The second way is even more clonky but this way you can link to any url that you like.
I will describe it in the next post.
Last Updated on Monday, 14 December 2009 09:05
 
VirtueMart
Your Cart is currently empty.

Latest Joomla & VirtueMart Tips

See all tips & examples



Separate links for Briask ImageSlideShow module images|Joomla & VirtueMart Tips & How To's



How to get separate links for ImageSlideShow module images. The ImageSlideShow module from briask.com is an excellent and simple image gallery which shows any images from a designated folder.


link, image, number, images, file, url, content, different, individual, like, imageslideshow, jpg, php, module, index, itemid, mod, ways, option, pages, echo, folder, briask, joomla, links, desired, adds, finds, simply, corresponding, rename, note, post, clonky, second, ditch, replace, editor, preg, line


guru

We use cookies to improve our website and your experience when using it. Cookies used for the essential operation of the site have already been set.
To find out more about the cookies we use and how to delete them, see our privacy policy.

I accept cookies from this site.