-
AuthorPosts
-
July 17, 2015 at 2:54 pm #208928
hi,
i have been enjoying your module tremendously, it’s a good addition to the website we want to build.
the only downside for me so far is that i can find a setting where i can change how the link in the marker is opened, i would like it to open in a popup window so that our clients stay on our website, now the link in the marker opens the link in the parent window.looking forward to your reply.
johannes van den einde
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 20, 2015 at 6:10 am #577942In this case, you have to change it from modules/mod_jaimagehotspot/tmpl/default.php file with script below
find and change
<?php if(!empty($des->title) || !empty($des->details)): ?>
<a style="top:<?php echo $des->offsety; ?>%;left:<?php echo $des->offsetx; ?>%"
class="point <?php echo $classpoint.' point'.$i; ?>"
href="<?php echo trim($des->link) ? $des->link : 'javascript:void(0)' ?>"
id="<?php echo 'ja-marker-'.$des->imgid; ?>"
data-toggle="popover"
data-placement="top"
title="<?php echo $des->title; ?>"
data-content="<?php echo htmlspecialchars(nl2br($des->details), ENT_COMPAT, 'UTF-8'); ?>" data-html="true">
<span class="hidden">Point</span>
</a>
<?php else: ?>
<a style="top:<?php echo $des->offsety; ?>%;left:<?php echo $des->offsetx; ?>%"
class="point <?php echo $classpoint.' point'.$i; ?>"
href="<?php echo trim($des->link) ? $des->link : 'javascript:void(0)' ?>"
id="<?php echo 'ja-marker-'.$des->imgid; ?>"
title="">
<span class="hidden">Point</span>
</a>
<?php endif; ?>to
<?php if(!empty($des->title) || !empty($des->details)): ?>
<a style="top:<?php echo $des->offsety; ?>%;left:<?php echo $des->offsetx; ?>%"
class="point <?php echo $classpoint.' point'.$i; ?>"
href="<?php echo trim($des->link) ? $des->link : 'javascript:void(0)' ?>"
id="<?php echo 'ja-marker-'.$des->imgid; ?>"
data-toggle="popover"
data-placement="top"
title="<?php echo $des->title; ?>"
data-content="<?php echo htmlspecialchars(nl2br($des->details), ENT_COMPAT, 'UTF-8'); ?>" data-html="true" target="_blank">
<span class="hidden">Point</span>
</a>
<?php else: ?>
<a style="top:<?php echo $des->offsety; ?>%;left:<?php echo $des->offsetx; ?>%"
class="point <?php echo $classpoint.' point'.$i; ?>"
href="<?php echo trim($des->link) ? $des->link : 'javascript:void(0)' ?>"
id="<?php echo 'ja-marker-'.$des->imgid; ?>"
title="" target="_blank">
<span class="hidden">Point</span>
</a>
<?php endif; ?>
July 20, 2015 at 10:31 am #578010Hi,
thanks for your reply.
i added the changes and it’s a lot better but it opens the link in a new tab and not a new window, do you think this is possible, if yes how would i do that.kind regards and thanks in advance
July 20, 2015 at 10:31 am #644301Hi,
thanks for your reply.
i added the changes and it’s a lot better but it opens the link in a new tab and not a new window, do you think this is possible, if yes how would i do that.kind regards and thanks in advance
July 20, 2015 at 10:31 am #742934Hi,
thanks for your reply.
i added the changes and it’s a lot better but it opens the link in a new tab and not a new window, do you think this is possible, if yes how would i do that.kind regards and thanks in advance
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
July 21, 2015 at 7:44 am #578123@johanneseinde: yes, my solution opens new tab and not popup, if you want to open popup you have to make the custom with it and you can apply the solution here to change a href tag in JA ImageHotspot module
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by johanneseinde 9 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum