1. kleinpeter
  2. Sherlock Holmes
  3. Free Templates / Extensions
  4. Monday, 08 January 2018
  5.  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
Accepted Answer Pending Moderation
0
Votes
Undo
Hello Ciaran,

I completed the task and the php file only had one of the type of code available. I am receiving an error message "An error has occurred.
500 Error loading form file" This is for privilege

Thanks
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
It's OK I fixed it.. forgot to close the code on the .xml file

thx
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 4
  • 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.