Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1885

General Questions/New to Joomla! 5.x • Re: fetching Full Article Image with php?

$
0
0
The article contains an images field where both the intro and full image can stored in JSON format.
To display them you could use something like:

Code:

<?php$images = json_decode($article->images);echo '<img src="' . $this->escape($images->image_intro) . '" alt="Intro Image">';echo '<img src="' . $this->escape($images->image_fulltext) . '" alt="Full Image">';?>

Statistics: Posted by pe7er — Mon Apr 08, 2024 8:03 pm



Viewing all articles
Browse latest Browse all 1885

Trending Articles





<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>