So I have added to properties to an image and I am having trouble accessing them, can someone point out where I’m going wrong please?
This is part of my blueprint:
files: fields: textalt: label: en: Alt Text de: Alt Text type: text maincolor: label: en: Main Image Color de: Main Image Color type: text fields: heroimage: label: en: Hero Image de: Hero Image type: image width: 1/3 required: true
This is how I am trying to render it on the front-end. The URL works, but the image data of maincolor doesn’t come through. It has created the needed text file inside the content folder with the image name etc… So I can see the data is saving.
<section class="site-hero container-fluid" style="background-image: url('<?php echo imgix($page->heroimage()->toFile(), array('blur' => 200, 'px' => 16, 'auto' => 'format')) ?>'); background-color: <?php $page->heroimage()->maincolor()->html() ?>;">