Intro Images In Joomla Articles Not Displaying In Frontend Articles Addon (Gazzete Template) - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

Intro Images In Joomla Articles Not Displaying In Frontend Articles Addon (Gazzete Template)

C

Claudino

Template 5 months ago

Hi,

In Shaper Gazette template, Intro images in joomla articles are not displaying in frontend articles addon. I've searched here and found this article: https://www.joomshaper.com/forum/question/1696

The error reported is similar to what I have: "Warning: Undefined property: stdClass::$image_medium in /homepages/45/d91553272/htdocs/dev3-ptg2025/templates/shaper_gazette/sppagebuilder/addons/articles/site.php on line 216"

And that user suggested a change: } elseif($article_layout == "horizontal" || ($article_layout == "creative" && $key > 1)) { $imagesArticle = json_decode($item->images); $imageIntroURL = htmlspecialchars($imagesArticle->image_intro); $image = $imageIntroURL;
//$image = $item->image_small;

Although I don't have PHP knowledge, I've tried this and did worked for some images, but not for all. So I came here asking for help! Can someone share a fix for this that fixes the image thumbnails (grabbed from articles intro image) not only in the horizontal Articles Layout(as it is partially done now), but also in the others - Default, Classic, Simple, etc. Does seem the template I've bought just a couple of months ago, has an identified problem! (that post has 4 years) I just need a fix to this to be able to have the intro images working as they are shown in the demo. Can someone help, please?

Site is in dev mode here: https://dev3.portugoal.net/ ...it has the debug mode active so the errors are visible...

Thanks in advance!

0
3 Answers
C
Claudino
Accepted Answer
5 months ago #192387

Update: Meanwhile I was able, even without php knowledge, to adapt the above code to the other Article layout styles, and so far it is working. So, problem solved by now.

Anyway it would be great that Jooshaper devs could provide, at least an updated site.php file with those improvements made by experts. So non-devs like me could use the template in 2025... just an idea...

Thank you!

0
Atick Eashrak Shuvo
Atick Eashrak Shuvo
Accepted Answer
Support Agent 5 months ago #192397

Thank you for the update! We're glad to hear you were able to adapt the code successfully, even without prior PHP knowledge — that’s impressive.

If possible, could you kindly share the steps or changes you made to get it working? It would be very helpful for other users who might encounter a similar issue.

Also, we appreciate your suggestion regarding the updated site.php file — we'll forward this feedback to the development team for consideration.

Thanks again!

0
C
Claudino
Accepted Answer
5 months ago #192515

Hi, Atick, yes. sure - I've simply followed the direction of the User (Thank you Danny!) in the referenced post - https://www.joomshaper.com/forum/question/1696 - it's all there. Additionally, I've found that replicating that code block and changing the name of the articles Layout styles into the ones I needed to use, i.e. "horizontal", "creative", "standard", etc. it does the trick. Now, the problem might be, that the code is not the best, as Danny also mentions, hence my humble request that the devs provide the community with a clean code block, or even an update to the Template...!?

Thank you!

0