Environment: Joomla 5.4.10, SP Page Builder 6.10.0, PHP 8.3
When I use the Articles addon with "Thumb Size" set to "Medium" and the articles only have the standard Joomla intro image (Images and Links -> Intro Image), no Helix/SP featured image, no thumbnail is shown at all.
I expected the intro image to be shown as the thumbnail.
Cause I found:
- In components/com_sppagebuilder/helpers/articles.php, getArticles() only sets $item->image_thumbnail from the intro image. Later the $keysToAdd loop initialises image_small, image_medium and image_large to an empty string ''.
- In components/com_sppagebuilder/addons/articles/site.php the image is chosen with:
$image = $item->{$thumb_size} ?? $item->image_thumbnail;
Because image_medium is '' (not null), the ?? operator does not fall back to image_thumbnail, so $image stays empty and nothing is rendered.
What I tried: Forcing $thumb_size = 'image_thumbnail'; in site.php fixes it, but I have to repeat this after every update.
Suggested fix (site.php):
$image = !empty($item->{$thumb_size}) ? $item->{$thumb_size} : $item->image_thumbnail;
Could you please fix this in the core? Thank you!
Udo