1. canwestboss
  2. Free Templates / Extensions
  3. Wednesday, 24 April 2013
  4.  Subscribe via email
Is there a way to make the url open in a new window. I did not see any place for _target in the configuration
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Chuck

In your modules mod_j51hover.php (../modules/mod_j51hover/mod_j51hover.php) try replacing the following...


<a href="/<?php echo $hover_link; ?>" class="info">Read More</a>


With...


<a href="/<?php echo $hover_link; ?>" class="info" target="_blank">Read More</a>


Ciarán
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Ahh But Now I get tricky

I have this module in three places on the site. I only want one of them to open in a new window
  1. more than a month ago
  2. Free Templates / Extensions
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
You will have to add a field in the modules parameters to add a target..

In your modules mod_j51hover.xml add the following just before </fieldset>..


<field name="target" type="text" default = "_self" label="Target"  description = "Target"/>


In your modules mod_j51hover.php add the following just after $HOpacity = $params->get('HOpacity', 0); ...


$target = $params->get('target', '_self');


And finally further done on the same file replace the following...


<a href="/<?php echo $hover_link; ?>" class="info">Read More</a>


With...


<a href="/<?php echo $hover_link; ?>" target="<?php echo $target; ?>" class="info">Read More</a>


I haven't actually tested this so you might have to get back to me if it doesn't work :)

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