- Posts: 1
- Thank you received: 0
Link Title or Thumbnail to article
-
tottihope
Inactive member - Topic Author
- New Member
Less
More
13 years 6 months ago #9726
by tottihope
Link Title or Thumbnail to article was created by tottihope
Hi there.
Is it possible to link either the title or thumbnail to any article of my choice.
When saw this extension I though it was doing that and I bought it.
Can anyone help please?
rgds
Is it possible to link either the title or thumbnail to any article of my choice.
When saw this extension I though it was doing that and I bought it.
Can anyone help please?
rgds
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 6 months ago #9743
by ivan.milic
Replied by ivan.milic on topic Re: Link Title or Thumbnail to article
Well, "read more" is reserved for that ("Read More Link" field in content slot when you are in module configuration) , but you can easily modify
modules\mod_hot_designation\tmpl\default.php to make thumb, big mage or title also likable to that link.
Open modules\mod_hot_designation\tmpl\default.php for editing.
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]; ?>';" ...
by using <?php echo $link[$loop]; ?> as link value , link would be the same as in "read more" link.
to make title linkable modify H3 :
<H3 onclick="window.location = '<?php echo $link[$loop]; ?>';" ...
You can also use :
<IMG onclick="window.location = ' www.somesite.com ';" ...
if you want to link them to link different from "read more" link
modules\mod_hot_designation\tmpl\default.php to make thumb, big mage or title also likable to that link.
Open modules\mod_hot_designation\tmpl\default.php for editing.
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]; ?>';" ...
by using <?php echo $link[$loop]; ?> as link value , link would be the same as in "read more" link.
to make title linkable modify H3 :
<H3 onclick="window.location = '<?php echo $link[$loop]; ?>';" ...
You can also use :
<IMG onclick="window.location = ' www.somesite.com ';" ...
if you want to link them to link different from "read more" link
Please Log in to join the conversation.
-
stretch193
Inactive member - New Member
Less
More
- Posts: 10
- Thank you received: 0
13 years 6 months ago #9925
by stretch193
Replied by stretch193 on topic Re: Link Title or Thumbnail to article
Hi,
I'm also trying to add a link for the title and thumbnail. I tried adding the code to the modules\mod_hot_designation\tmpl\default.php file but can't get it to work. I noticed that the title already has a href associated with it. Shouldn't this do the job?
Using the original default.php file I see however that the cursor changes as if it's pointing at a link (finger cursor) when the mouse is over any part of the content slot. Is it possible to only display this cursor when it is over a link (like the spinner) extension?
Thanks,
Mark
I'm also trying to add a link for the title and thumbnail. I tried adding the code to the modules\mod_hot_designation\tmpl\default.php file but can't get it to work. I noticed that the title already has a href associated with it. Shouldn't this do the job?
Using the original default.php file I see however that the cursor changes as if it's pointing at a link (finger cursor) when the mouse is over any part of the content slot. Is it possible to only display this cursor when it is over a link (like the spinner) extension?
Thanks,
Mark
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 6 months ago #9944
by ivan.milic
Replied by ivan.milic on topic Re: Link Title or Thumbnail to article
Ye can put link in any href you add or find.
The cursor thing is form css:
open hot_designation.css
find this:
.hjt-gallery-list-item /*tr*/
{
cursor:pointer;
position:relative;
}
and remove cursor property then add new css entry:
.hjt-gallery-list-item h3
{
cursor:pointer;
}
this will make cursor pointer show only when you are over title.
The cursor thing is form css:
open hot_designation.css
find this:
.hjt-gallery-list-item /*tr*/
{
cursor:pointer;
position:relative;
}
and remove cursor property then add new css entry:
.hjt-gallery-list-item h3
{
cursor:pointer;
}
this will make cursor pointer show only when you are over title.
Please Log in to join the conversation.
-
stretch193
Inactive member - New Member
Less
More
- Posts: 10
- Thank you received: 0
13 years 6 months ago #9967
by stretch193
Replied by stretch193 on topic Re: Link Title or Thumbnail to article
Thanks that all works now
Please Log in to join the conversation.
Time to create page: 0.162 seconds