#Hi, is it possible to share a block (cta) to different collection (pages and posts)?Got this error:
1 messages · Page 1 of 1 (latest)
Help is on the way! To mark it as solved, use the /solve command. In the meantime, here are some existing threads that may help you:
Documentation:
- Blocks Field - Block configs
- Field Hooks - Arguments and return values - Return value
- Fields Overview
- Payload Concepts - Fields
- Context
Community-Help:
Hey I have a similar issue did you find a solution ?
Hi, I don't have better solution yet, I did this for a temporary solution:
import { Cta } from '@/blocks/Cta/config' const CtaBlock = JSON.parse(JSON.stringify(Cta)); CtaBlock.dbName = 'posts_cta'; ... { name: 'layout', label: 'Layout', labels: { singular: 'Layout', plural: 'Layouts', }, type: 'blocks', unique: true, blocks: [ CtaBlock, MediaBlock, Archive, FormBlock ], required: false, } ...