I am trying to get a cover image from the parent.
This is the blueprint of the child.
title: Produccion
preset: page
fields:
cover:
label: Cover
type: files
translate: false
multiple: false
layout: cards
and in the parent i am doing:
<?php
foreach($page->children()->listed() as $produccion){
$cover = $produccion->cover();
echo $cover->crop(500,500);
echo "<br>";
}
?>
But nothing I do change the result. I only get the name of the files: y try grayscale, url() but i always the name of the file.
- image-a.jpg
- image-b.jpg
- image-c.jpg