PDA

View Full Version : Links in JA News


maria11
07-22-2008, 07:37 AM
How would I go about making images linkable in JA News? Have made the image into a HTML link in the intro text of the article but it seems that JANews strips this code when it resizes and loads the images.
Any help would be great

hanhct
07-25-2008, 03:21 AM
Hi maria11!
JA News component only resize and load image to introduce your article. However, all seting for images and something of your article still not change when you view the article :)

valic
07-25-2008, 08:57 AM
How would I go about making images linkable in JA News? Have made the image into a HTML link in the intro text of the article but it seems that JANews strips this code when it resizes and loads the images.
Any help would be great

hi,

it's possible

for example, linked image on blog layout ( no group by)

open in editor this file blog.item.php - which it's in this folder -->components/com_janews/layouts/blog/no_group_by/

and replace around line 83 this code <?php echo $image; ?>

with that
<a href="<?php echo $item->readmore_link; ?>" title="<?php echo $item->title; ?>">
<?php echo $image; ?></a>


And second example - headline normal
open headline.php ( components/com_janews/layouts/headline/default)

and replace around line 71 and 43 this code <?php echo $image; ?>

with that code <a href="<?php echo $link;?>" title="<?php echo strip_tags($news->title); ?>"><?php echo $image; ?></a>

in headline.php on two line, while you have leading article and other article.