I’ve made a custom block. Some text fields and an image field. In the Panel I’d like the text fields to display on the left and the image field to display on the right. Is this possible?
I’ve tried adding columns, main and sidebar inside the custom block, but it’s not working. (I can’t figure out where the code would go and I’m not even sure if this is possible)
title: News
fields:
newsblock:
type: blocks
label: News
pretty: true
fieldsets:
- type: newsarticle
name: News article
preview: fields
wysiwyg: true
columns:
main:
width: 1/2
fields:
news_article_heading:
type: text
label: Article heading
news_article_date:
type: date
label: Article date
news_article_text:
type: writer
label: Article text
sidebar:
width: 1/2
fields:
news_article_image:
type: files
label: Article photo
multiple: false
layout: cards
size: medium
image:
back: white