Hi,
I have this code for my template blueprint:
title: BTS
tabs:
hero:
label: Hero section
icon: image
columns:
main:
width: 2/3
sections:
hero:
type: fields
fields:
blocks:
type: blocks
fieldsets:
- type: sectionbtstype1
name: Section with 3 images
fields:
image1:
type: files
image2:
type: files
image3:
type: files
- type: sectionbtstype2
name: Section with 5 images
fields:
image1:
type: files
image2:
type: files
image3:
type: files
image4:
type: files
image5:
type: files
- type: sectionbtstype3
name: Section with 3 images (alternative)
fields:
image1:
type: files
image2:
type: files
image3:
type: files
sidebar:
width: 1/3
sections:
files:
type: files
uploads: default
label: Files
This is the php
<!DOCTYPE html>
<html lang="nl" class="scroll-smooth focus:scroll-auto">
<?php snippet('head') ?>
<body class="font-tertiary font-normal overscroll-none bg-brand-neutral-dark-900" id="body">
<?php snippet('grain') ?>
<?php snippet('header') ?>
<main class="relative z-10">
<?= $page->blocks()->toBlocks() ?>
</main>
<?php snippet('footer-relative') ?>
<?php snippet('scripts') ?>
</body>
</html>
And this is the blueprint for my block:
name: sectiontype1
fields:
image1:
type: image
ratio: 4/3
image2:
type: image
template: image
ratio: 3/4
image3:
type: image
template: image
ratio: 16/9
I want the images to render in the ratio’s that I have added.
This does not work.
What am I missing here and doing wrong?