Hi
some tiime ago you solved the problem and let me show the first article image as intro image.
You did it modifing this file /templates/ja_flix/html/layouts/joomla/content/image/intro.php, and adding this code in it:
$item_content = $displayData->introtext . $displayData->fulltext;

if(!class_exists('JATemplateHelper')) {
require JPATH_ROOT.'/templates/ja_flix/helper.php';
}

if(!$thumbnail) {
if((isset($images->image_intro) && !empty($images->image_intro))) {
if(preg_match('/http/',$images->image_intro,$matches)){
$thumbnail = $images->image_intro;
}else{
$thumbnail = JURI::root(true) .'/'. htmlspecialchars($images->image_intro, ENT_COMPAT, 'UTF-8');
}
} else {
$introtext = JATemplateHelper::getIntroArticle($displayData->id);
file_put_contents(JPATH_ROOT.'/templates/ja_flix/jatest.txt',json_encode($JAItem).PHP_EOL, FILE_APPEND);
preg_match('/<img.+src=\'"[\'"].*>/i', $introtext, $image);
if($image['src']) {
$thumbnail = JURI::root(true) . '/' . $image['src'];
}else{
$thumbnail = JURI::base() . '/templates/' . $template . '/images/blank-intro.png';
}

}

}

Now I have updated Jaflix theme to the last versione and I lost your fix, when I try to add it again I get this error in front end:
Call to undefined method JATemplateHelper::getIntroArticle().

Now please can you help me to fix this problem again?
and, most important, is there a way to override this fix so that I can update the theme in the future without loosing the fixes?
Thanks a lot for your help
Fabrizio

    rossiello Hi

    I highly recommend you to setup articles with both Intro image and full text image as from Joomla 3, Joomla recommend this way and not just the template but all modules will use intro image to display on frontend. If you customize this way, every time you update template, it will be lost.

    Regards

      saguaros
      ok thanks but now please can you help me to fix the problem on the new version of the template?

        Write a Reply...
        You need to Login to view replies.