Display Image on other Page


is it possible to display an image from one page on another?
To display text form another page i found

<?= ($page = page('demo')) ? $page->text()->kt() : '' ?>

But how can i display images?
Thank you for yot help.

Yes, in the same way that you can pull content from another page, you can fetch files from those pages:

if (($p = page('about')) && $image = $p->image('someimage')) {
  echo $image;

Or getting a file store in a files field called cover

if (($p = page('about')) && $image = $p->cover()->toFile()) {
  echo $image;

Thank you - great as always. :innocent: