Closed moevbiz closed 2 years ago
It seems to be currently not possible to extend the blocks (or layout) fields like the docs suggest: https://getkirby.com/docs/reference/plugins/extensions/fields#extending-existing-fields__extending-the-backend when doing this:
blocks
layout
Kirby::plugin('my/plugin', [ 'fields' => [ 'extendedblocks' => [ 'extends' => 'blocks', ] ],
it results in the following error message in the panel:
Component definition Kirby\Form\Field\BlocksField does not exist in file: [...]/public/kirby/src/Toolkit/Component.php line: 231
Kirby Version 3.6.2
@afbora said: "It seems that the component class does not support this loading/registering because blocks and layout field are loaded differently from other fields (registering as a class, not as an array). An issue on GitHub would be nice." https://discord.com/channels/525634039965679616/525641819854471168/948168719916474398
Duplicate of #3961
Description
It seems to be currently not possible to extend the
blocks
(orlayout
) fields like the docs suggest: https://getkirby.com/docs/reference/plugins/extensions/fields#extending-existing-fields__extending-the-backend when doing this:it results in the following error message in the panel:
To reproduce
Your setup
Kirby Version
3.6.2
additional info:
@afbora said: "It seems that the component class does not support this loading/registering because blocks and layout field are loaded differently from other fields (registering as a class, not as an array). An issue on GitHub would be nice." https://discord.com/channels/525634039965679616/525641819854471168/948168719916474398