Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • johanneseinde Friend
    #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 Moderator
    #577942

    In 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; ?>

    johanneseinde Friend
    #578010

    Hi,

    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

    johanneseinde Friend
    #644301

    Hi,

    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

    johanneseinde Friend
    #742934

    Hi,

    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 Moderator
    #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

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 2 voices, and was last updated by  johanneseinde 8 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum