test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • zorroh Friend
    #193848

    How 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 Friend
    #519016

    @zorroh,

    By 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.


    1. slideshow-2
    mim6711 Friend
    #540881

    Is 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 Moderator
    #540911

    You 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]

Viewing 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