-
AuthorPosts
-
zorroh Friend
zorroh
- Join date:
- November 2006
- Posts:
- 422
- Downloads:
- 20
- Uploads:
- 43
- Thanks:
- 88
- Thanked:
- 80 times in 1 posts
January 18, 2014 at 6:35 pm #193848How to change where slideshow takes photo from article?
right now it takes photo from article photo, but i need that photo source will be articles introduction photo.
how to change that?
Nazario A FriendNazario A
- Join date:
- April 2013
- Posts:
- 1183
- Downloads:
- 0
- Uploads:
- 406
- Thanks:
- 91
- Thanked:
- 284 times in 263 posts
January 20, 2014 at 6:13 am #519016By default the image is added into article content like this:
If you insert images into article via Images and Links option instead of article content, this JA Slideshow module should retrieve and display that intro image in frontend.
Please try to update this module to the latest version and remember to clean all caches after making changes.
July 2, 2014 at 12:59 am #540881Is there a way to use the “intro Image” to the slideshow and when you click read-more display the “Full article” image? Actually the module takes the second one when I set both.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
July 2, 2014 at 7:25 am #540911You can try opening file: modulesmod_jaslideshowhelpershelper.php and look for this snippet of code:
[PHP]
if ((isset($images->image_fulltext) and !empty($images->image_fulltext)) || (isset($images->image_intro) and !empty($images->image_intro))) {
$row->mainImage = (isset($images->image_fulltext) and !empty($images->image_fulltext)) ? $images->image_fulltext : ((isset($images->image_intro) and !empty($images->image_intro)) ? $images->image_intro : “”);
$row->thumbnail = (isset($images->image_intro) and !empty($images->image_intro)) ? $images->image_intro : ((isset($images->image_fulltext) and !empty($images->image_fulltext)) ? $images->image_fulltext : “”);
}
[/PHP]change it to:
[PHP]
if ((isset($images->image_fulltext) and !empty($images->image_fulltext)) || (isset($images->image_intro) and !empty($images->image_intro))) {
$row->mainImage = ((isset($images->image_intro) and !empty($images->image_intro)) ? $images->image_intro : “”);
$row->thumbnail = (isset($images->image_intro) and !empty($images->image_intro)) ? $images->image_intro : ((isset($images->image_fulltext) and !empty($images->image_fulltext)) ? $images->image_fulltext : “”);
}
[/PHP]AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 4 voices, and was last updated by Saguaros 10 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
source photo from articles introduction
Viewing 4 posts - 1 through 4 (of 4 total)