-
AuthorPosts
-
Armenos Lumen Leviticus Emmanuel Friend
Armenos Lumen Leviticus Emmanuel
- Join date:
- September 2014
- Posts:
- 13
- Downloads:
- 86
- Uploads:
- 4
- Thanks:
- 6
May 5, 2014 at 2:00 pm #197413Hi,
JA Content Slider module is supporting linked images to detail article. But I would like to be able to link to anything that the image is linked to from the article. I’ve read the: http://www.joomlart.com/forums/topic/link-images/ . But I couldn’t find the solution, please help me to modify.
ThanksNinja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
wdiggles Friendwdiggles
- Join date:
- March 2011
- Posts:
- 41
- Downloads:
- 34
- Uploads:
- 9
- Thanks:
- 8
- Thanked:
- 5 times in 3 posts
May 20, 2014 at 2:48 pm #535882I am working on a site and wanted the content slider to act more like a slideshow that allows me to link to any part of the website. My first thought was to include a link around an image included in the intro text. But if you follow the above thread you can see that functionality does not exist yet.
I did come up with an acceptable solution, hopefully it will help someone else out there.
The solution is to use an intro text link as a replacement for the title link. The intro text link can be set to link anywhere using an a tag.
Step 1: JA Content Slider settings:
- Set ‘Title’ to Hide.
- Set ‘Show Image’ to Show.
Step 2: To add your images use the core Joomla article intro image feature. Do not use img tag in the intro text.
Step 3: Intro text
<blockquote><a href="honey-finder">Honey Finder</a></blockquote> <hr id="system-readmore" />
Step 4: Keep intro html tags from being stripped. ( This is answered on another thread ). Open the modules/mod_jacontentslider/helper.php file Line 718
$row->introtext = SmartTrim::mb_trim ( strip_tags($row->introtext), 0, $maxchars, $doc->_charset );
replace with$row->introtext = SmartTrim::mb_trim ( strip_tags($row->introtext, '<blockquote><a>'), 0, $maxchars, $doc->_charset );
Step 5: Remove image links from content slider ( Also answered in the forum ) Open the modules/mod_jacontentslider/helper.php file, find and remove this code (around line 650)
$image = '<a href="' . $link . '" title="" class="ja-image">' . $image . '</a>';
Style the blockquote to your liking and it works like a charm. You will be able to see a working example here.
Note: This modification works on JA Content Slider v2.7.2
1 user says Thank You to wdiggles for this useful post
-
AuthorPosts
This topic contains 3 replies, has 3 voices, and was last updated by wdiggles 10 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum