- Posts: 2
- Thank you received: 0
Possible to link big images?
-
fuentism
Inactive member -
Topic Author
- New Member
-
Less
More
13 years 8 months ago #9689
by fuentism
Possible to link big images? was created by fuentism
I would love it if I could link the large images in HOTDesignation as well as the read more link but after poking around I can't figure it out - does anyone know how to do this? Thanks!
Please Log in to join the conversation.
-
ivan.milic
Support Staff -
- Moderator
-
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 8 months ago #9706
by ivan.milic
Replied by ivan.milic on topic Re: Possible to link big images?
Hi "read more" link is an link ? I do not understand what do you mean by not been able to make it act like link.You simply need to enter links in link fields in module configuration.
To make large image likable you can alter modules\mod_hot_designation\tmpl\default.php
find this:
First <IMG tag is for thumb , other for big image, and you can apply this to both of them.
You can add onclick="window.location='<loation to navigate to>;'"
so it may look like this:
<IMG onclick="window.location = '<?php echo $link[$loop]; ?>';" ...
bay ucin <?php echo $link[$loop]; ?> as link value , link would be the same as in read more link. You can also use :
<IMG onclick="window.location = ' www.somesite.com ';" ...
To make large image likable you can alter modules\mod_hot_designation\tmpl\default.php
find this:
Code:
<?php if ($slot[$loop]) { ?>
<img align="left" src="<?php echo $smallImage[$loop]; ?>" width="<?php echo $smallPicWidth; ?>" height="<?php echo $smallPicHeight; ?>" alt="" />
<img src="<?php echo $bigImage[$loop]; ?>" width="<?php echo $bigPicWidth; ?>" height="<?php echo $bigPicHeight; ?>" alt="" />
<h3><?php if($link[$loop] && $linkedTitles) { ?><a href="<?php echo $link[$loop]; ?>"><?php } echo $heading[$loop]; ?><?php if($link[$loop] && $linkedTitles) { ?></a><?php } ?></h3>
<p><?php echo $text[$loop]; ?> <?php if($link[$loop]) { ?><a href="<?php echo $link[$loop]; ?>"><?php echo $readMore; ?></a><?php } ?></p>
<hr />
<?php } ?>
First <IMG tag is for thumb , other for big image, and you can apply this to both of them.
You can add onclick="window.location='<loation to navigate to>;'"
so it may look like this:
<IMG onclick="window.location = '<?php echo $link[$loop]; ?>';" ...
bay ucin <?php echo $link[$loop]; ?> as link value , link would be the same as in read more link. You can also use :
<IMG onclick="window.location = ' www.somesite.com ';" ...
Please Log in to join the conversation.
-
fuentism
Inactive member -
Topic Author
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
13 years 8 months ago #9721
by fuentism
Replied by fuentism on topic Re: Possible to link big images?
Hi Ivan,
Thanks so much, that did the trick!
I had been trying to wrap the img tag in link tags and that was not the way to go... onclick worked great.
Thank you!
PS The readmore link is fine, I just meant I wanted the image to behave like the readmore link. So now everything's just like I need it
Thanks so much, that did the trick!
I had been trying to wrap the img tag in link tags and that was not the way to go... onclick worked great.
Thank you!
PS The readmore link is fine, I just meant I wanted the image to behave like the readmore link. So now everything's just like I need it

Please Log in to join the conversation.
Time to create page: 0.155 seconds