Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Armenos Lumen Leviticus Emmanuel Friend
    #197413

    Hi,
    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.
    Thanks

    Ninja Lead Moderator
    #533866

    I see your request other thread. Please follow the my answer here

    wdiggles Friend
    #535882

    I 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

Viewing 3 posts - 1 through 3 (of 3 total)

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