Thanks, that's exactly what I was looking for!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 SocketPup — Tue Apr 09, 2024 7:16 am