-
AuthorPosts
-
nefar Friend
nefar
- Join date:
- December 2007
- Posts:
- 434
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 78
- Thanked:
- 42 times in 1 posts
April 15, 2009 at 4:19 pm #140274Just started a project using Rutile and I noticed that the images that are showing up in JA News FP are not showing their links. IE>. I made a new article which is really nothing more then an image. I linked the image which is fine in the “article” but the link does not follow through to the front page inside of JA News FP.
Is there any way to make the images that JA News FP pulls to front page linkable?
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
April 16, 2009 at 7:43 am #301530Hi,
Please open modulesmod_janews_fptmplheadline_fp.php file, at about line 48, find following code:
[PHP]<?php echo $image; ?>[/PHP]
and change to:
[PHP]<a href=”<?php echo $link;?>”><?php echo $image; ?> </a>[/PHP]
1 user says Thank You to JA Developer for this useful post
nefar Friendnefar
- Join date:
- December 2007
- Posts:
- 434
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 78
- Thanked:
- 42 times in 1 posts
April 30, 2009 at 8:51 pm #303064Well this did work if you want the image to “Link” to the article not to what the “Image” itself is linked to.
August 31, 2009 at 9:43 pm #315934in mod_janews module that comes w/ jaLead?
scotty Friendscotty
- Join date:
- March 2008
- Posts:
- 2339
- Downloads:
- 0
- Uploads:
- 13
- Thanks:
- 76
- Thanked:
- 827 times in 595 posts
August 31, 2009 at 11:41 pm #315942HI nefar, this is not possible without a major re-writing of helper.php.
You see helper.php strips the image out of the article and places it in the image placeholder in JA News. It places ONLY the <img> in this placeholder and not any <a> (link) it may be in.
monsterhunter Friendmonsterhunter
- Join date:
- September 2014
- Posts:
- 26
- Downloads:
- 0
- Uploads:
- 5
- Thanks:
- 14
- Thanked:
- 1 times in 1 posts
September 25, 2010 at 8:19 pm #356662<em>@JA Developer 124594 wrote:</em><blockquote>Hi,
Please open modulesmod_janews_fptmplheadline_fp.php file, at about line 48, find following code:
[PHP]<?php echo $image; ?>[/PHP]
and change to:
[PHP]<a href=”<?php echo $link;?>”><?php echo $image; ?> </a>[/PHP]</blockquote>
This works for me.
At least for the frontpage.
How can I make the image linkable/clickable in Category Blog Layout.
I think I have seen an extension for this but I cannot find it anymore 🙁
It makes it more userfriendly when you click the image to go to the article IMO.Thanks
Greetz -
AuthorPosts
This topic contains 6 replies, has 5 voices, and was last updated by monsterhunter 14 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum