test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • mihaib Friend
    #176813

    Q. How to change the image source on ja sidenews module from “Full article image” to “Intro Image” ?
    Thank you!

    Sherlock Friend
    #451962

    Hi mihaib,

    By default only if an article has no Full image the module would get the “Intro Image” so normally you have to remove the “Full image” for an article first if you want to use “Intro Image”.
    If you want the module to get “Intro Image” first, even if the “Full image” is there you would need to modify as following
    Open the file of modulesmod_jasidenewshelper.php and looking for this line of code
    [PHP] $image = (isset($images->image_fulltext) and !empty($images->image_fulltext))?$images->image_fulltext:((isset($images->image_intro) and !empty($images->image_intro))?$images->image_intro:””); [/PHP]

    change it to
    [PHP]$image = (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]

    I hope this would help !

    mihaib Friend
    #452098

    Cheers buddy! I will try to switch the code line.

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

This topic contains 3 replies, has 2 voices, and was last updated by  mihaib 12 years, 7 months ago.

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