Hi i’m working on a project where I need to show an image that’s been uploaded in the next page.
Can anybody help please?
It’s possible using the $page->nextVisible()
method:
<?php if ($next = $page->nextVisible()) : ?>
<img src="<?php echo $next->image('filename.jpg')->url(); ?>">
<?php endif ?>
Thanks but I already found a solution my self.