1. kleinpeter
  2. Free Templates / Extensions
  3. Monday, 08 January 2018
  4.  Subscribe via email
Hi Ciarán!

I've found some old posts about this issue, it might be you have a quick solution at hand :)

It's about the ImageLinkHover (version 1.0 - December 2011) that came with the Clarity Template. I also would like to be able to use External URL's linking to Facbook & Instragram. Currently I'm only able to link to menu items. I've tried to link to a menu item with an external URL in it, didn't work...

Any help would be welkom!

Regards,
Robert
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Robert

In your modules modules mod_j51imagelinkhover.xml (../modules/mod_j51imagelinkhover/mod_j51imagelinkhover.xml) try replacing the following...

<field name="hover_link" type="menuitem" default="45" label="Select a menu item" description="Select a menu item to link to." published="1"></field>


With..

<field name="hover_link" type="text" default="" label="Set URL" description="Set the URL to link to." published="1"></field>


This will add a URL field to your modules parameters in which you can set a URL to link to rather than selecting a menu item from a dropdown menu.

As well as the above edit to the XML also edit the following in your modules mod_j51imagelinkhover.php (../modules/mod_j51imagelinkhover/mod_j51imagelinkhover.php)

Replace every instance of...

<?php echo JRoute::_("index.php?Itemid={$hover_link}") ?>


With...

<?php echo $hover_link; ?>


Ciarán
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi!

Thank you! I'll try that :D

Cheers,
Robert
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok