Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about Hot Designation Joomla module

Topic-icon Link Title or Thumbnail to article

More
5 years 10 months ago #9726 by tottihope
tottihope created the topic: Link Title or Thumbnail to article
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

Please Log in to join the conversation.

More
5 years 10 months ago #9743 by ivan.milic
ivan.milic replied the 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:
<?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.

More
5 years 10 months ago #9925 by stretch193
stretch193 replied the 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

Please Log in to join the conversation.

More
5 years 10 months ago #9944 by ivan.milic
ivan.milic replied the 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.

Please Log in to join the conversation.

More
5 years 10 months ago #9967 by stretch193
stretch193 replied the 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.121 seconds

Links, Partners and Social Media