Hi I'm using this template on a new joomla 4 installation: ja_flix
My question is relative to the article intro image, at the moment it seems that it used the article intro image or (if empty) a place holder image. My question is how show the first image present in the article content if no intro image has been added?
at the moment in the intro.php files there is this code:
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 {
$thumbnail = JURI::base() . '/templates/' . $template . '/images/blank-intro.png';
}
}
I need to show the first image in article if no intro image is present and the placeholder image if there is no image in the article content.
I hope some one can give me some suggestion
thanks
Fabrizio