Hey!
Somewhat confused for the use of an image with the name COVER.
Used as in the systematics of ‘notes’ from the STARTERKIT (because of the use of TAGS).
A list of pages on the home page is to be output.
When using an image with the name HERO it works.
When using an image with the name COVER it does not work = ERROR.
What do I have to change in the 2nd code example to output the COVER image on the homepage?
→ OK for IMAGE named HERO for a page list with tags (like STARTERKIT)
<?php foreach (page('notes')->children()->limit(4)->listed() as $notes): ?>
URL: <?= $notes->url() ?> --
<?php $images = $notes->hero()->toFiles(); foreach($images as $image): ?>
IMAGE: <?= $image->url() ?><?php endforeach ?>
<?php endforeach ?>
→ ERROR for IMAGE named COVER for a page list with tags (like STARTERKIT)
<?php foreach (page('notes')->children()->limit(4)->listed() as $notes): ?>
URL: <?= $notes->url() ?> --
<?php $images = $notes->cover()->toFiles(); foreach($images as $image): ?>
IMAGE: <?= $image->url() ?><?php endforeach ?>
<?php endforeach ?>