-
AuthorPosts
-
stuarta60 Friend
stuarta60
- Join date:
- February 2010
- Posts:
- 78
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 26
- Thanked:
- 7 times in 1 posts
October 21, 2010 at 9:52 am #155495Hello,
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?
Phan Gam FriendPhan Gam
- Join date:
- June 2008
- Posts:
- 216
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 4
- Thanked:
- 39 times in 38 posts
November 24, 2010 at 4:10 am #364033Hi 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!AuthorPostsViewing 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
Slideshow K2 to link instead of articles?
Viewing 2 posts - 1 through 2 (of 2 total)