-
AuthorPosts
-
monsterhunter Friend
monsterhunter
- Join date:
- September 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 14
- Thanked:
- 1 times in 1 posts
December 5, 2014 at 10:18 am #203328I want the user to be able to click on the image to go to the article.
How can I get the image linked?Thanks
monsterhunter Friend
monsterhunter
- Join date:
- September 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 14
- Thanked:
- 1 times in 1 posts
December 5, 2014 at 4:14 pm #557670<em>@monsterhunter 456266 wrote:</em><blockquote>I want the user to be able to click on the image to go to the article.
How can I get the image linked?Thanks</blockquote>
Solved it myself by adding some code:
Changed the module default.php on linenumber 34
<?php if( $showimage ): ?>
<?php echo $helper->renderImage ($item, $params, $descMaxChars, $iwidth, $iheight ); ?>
<?php endif; ?>to
<?php if( $showimage ): ?> <a href="<?php echo $item->link; ?>">
<?php echo $helper->renderImage ($item, $params, $descMaxChars, $iwidth, $iheight ); ?></a>
<?php endif; ?>
erafirst
Friend
erafirst
- Join date:
- February 2015
- Posts:
- 51
- Downloads:
- 18
- Uploads:
- 5
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
June 1, 2015 at 8:37 pm #572498What about if I want the img to link to another site? I have articles made for this module as “ads” and would like to be able to click the img and go to the link I put in on the back end.
erafirst
Friend
erafirst
- Join date:
- February 2015
- Posts:
- 51
- Downloads:
- 18
- Uploads:
- 5
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
June 1, 2015 at 8:37 pm #737534What about if I want the img to link to another site? I have articles made for this module as “ads” and would like to be able to click the img and go to the link I put in on the back end.
Adam M Moderator
Adam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 4, 2015 at 4:00 pm #572900Hi @monsterhunter,
Sorry for the delay in getting back to you and glad to hear that you managed to sort it out.
Hi @erafirst,
I already answered your question in your thread, please feel free to continue there.
Adam M Moderator
Adam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
June 4, 2015 at 4:00 pm #737934Hi @monsterhunter,
Sorry for the delay in getting back to you and glad to hear that you managed to sort it out.
Hi @erafirst,
I already answered your question in your thread, please feel free to continue there.
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by Adam M 9 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum