Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • stuarta60 Friend
    #155495

    Hello,

    I am looking to create the slideshow that is called ‘Slideshow K2’ in the quickstart so that it has the same layout as the demo but instead of linking to an article it links direct to another area of the site.

    Is this possible to do but still maintaining the exact same layout as the below print screen?

    e.g. if you click “6 New Mac Apps for Designers and Developers” I want it to link to another area of the site instead of going to that article?


    1. ja-social-slide
    Phan Gam Friend
    #364033

    Hi stuarta60,
    When you use JA Slideshow2 to show articles, each url on each article is linked to article details. However, if you want to link directly to another area of the site, you can do by yourself and try my following suggestion:
    1. Open helper.php file in ../modules/mod_jaslideshow2 folder
    2. Searching fetchListArticles( $params ) code block (about line 121).
    3. Go to about line 160, as code
    [PHP]foreach( $data as $i => $row){
    ModJASlideshow3::parseImages( $row, $params );
    $data [$i]->text = $data [$i]->introtext;
    $results = $dispatcher->trigger ( ‘onPrepareContent’, array ( $data [$i], $params, $limitstart ) );
    $data [$i]->introtext = $data [$i]->text;

    }[/PHP]
    for parsing items
    4. replace article link with your link using $data[$i]->link = “[your link]”;
    [PHP]foreach( $data as $i => $row){
    ModJASlideshow3::parseImages( $row, $params );
    $data [$i]->text = $data [$i]->introtext;
    $results = $dispatcher->trigger ( ‘onPrepareContent’, array ( $data [$i], $params, $limitstart ) );
    $data [$i]->introtext = $data [$i]->text;
    $data[$i]->link = “[your link]”;
    }[/PHP]
    Notice: all articles in slideshow block will be applied on your links
    Hope can help you!

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

This topic contains 2 replies, has 2 voices, and was last updated by  Phan Gam 13 years, 12 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum