× Discussion about Hot Accordion Joomla module

Links from module to open in new window

More
7 years 3 weeks ago #19626 by marknissan@gmail.com
Hi,

how can I get the links entered into the module to open in a new window, i.e. target="_blank" ?

Cheers

Mark

Please Log in or Create an account to join the conversation.

More
7 years 3 weeks ago #19632 by ivan.milic
Open modules\mod_hot_accordion\tmpl\default.php

You will find this:
....
 <a <?php if ($firstCycle==0) { ?>id="a1" <?php } ?>class="accordion_block"<?php if ($link[$loop]) { ?> href="<?php echo $link[$loop]; ?>"<?php } ?>>
      <img src="<?php echo $mosConfig_live_site; ?>/<?php echo $image[$loop]; ?>" alt="" height="<?php echo $picHeight; ?>" width="<?php echo $picWidth; ?>" />
      <span class="accordion_head"><?php echo $heading[$loop]; ?></span>
      <span class="accordion_body"><?php echo $text[$loop]; ?></span>
    </a>
....

just add your attribute in <a.. tag
The following user(s) said Thank You: marknissan@gmail.com

Please Log in or Create an account to join the conversation.

More
7 years 3 weeks ago - 7 years 3 weeks ago #19654 by marknissan@gmail.com
Last edit: 7 years 3 weeks ago by marknissan@gmail.com.

Please Log in or Create an account to join the conversation.

Moderators: milos
Time to create page: 0.108 seconds