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
ciaran 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
kleinpeter 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.
However, you are not allowed to reply to this post.

Join Our Newsletter




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.