-
AuthorPosts
-
Peter Matra Friend
Peter Matra
- Join date:
- September 2014
- Posts:
- 159
- Downloads:
- 54
- Uploads:
- 25
- Thanked:
- 9 times in 1 posts
June 15, 2012 at 8:28 pm #178210Hey guys,
I have a page that is Category Blog Layout. I have intro images for each article. I want to make those images link to the article as well. I have searched around but can’t find an answer. Any ideas?
Also is it possible to replace that image with a module if I decide to go in that direction?
An example I am using is this URL: http://174.121.36.165/~tgagenet/index.php/strains?start=9
Pete
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
June 19, 2012 at 4:24 am #457962<em>@petermatra 325661 wrote:</em><blockquote>Hey guys,
I have a page that is Category Blog Layout. I have intro images for each article. I want to make those images link to the article as well. I have searched around but can’t find an answer. Any ideas?
Also is it possible to replace that image with a module if I decide to go in that direction?
An example I am using is this URL: http://174.121.36.165/~tgagenet/index.php/strains?start=9
Pete</blockquote>
Hello petermatra,I custom “<div class=”article-image”>” in “/templates/ja_kranos/html/com_content/category/blog_item.php” file, about line 165 to wrap “article details” link to image.
Before:
[PHP]<?php echo $image ?>[/PHP]After:
[PHP]
<?php if ($params->get(‘link_titles’) && $params->get(‘access-view’)) : ?>
<a href=”<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>”>
<?php echo $image ?></a>
<?php else : ?>
<?php echo $image ?>
<?php endif; ?>
[/PHP]Best regards.
Peter Matra FriendPeter Matra
- Join date:
- September 2014
- Posts:
- 159
- Downloads:
- 54
- Uploads:
- 25
- Thanked:
- 9 times in 1 posts
June 19, 2012 at 4:30 pm #458063Thank you very much! It seems like so many people want this feature in Joomla but I could never find an answer.
Peterichnyc30 Friendrichnyc30
- Join date:
- June 2011
- Posts:
- 105
- Downloads:
- 31
- Uploads:
- 4
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
March 31, 2014 at 2:20 am #528669I’d like to link the category blog images to the articles. I looked at the code mentioned here and it doesn’t seem to apply directly to the Argo template. Any suggestions?
-
AuthorPosts
This topic contains 5 replies, has 4 voices, and was last updated by Saguaros 10 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum