plain-solutions-gmbh / kirby-grid-block

MIT License
28 stars 1 forks source link

Adding grid-block in config.php throws memory error in kirby 3.6.0-rc1 #2

Closed peterstollenwerk closed 2 years ago

peterstollenwerk commented 2 years ago


<?php
return [
    'blocks' => [
        'fieldsets' => [
            'text' => [
              'label' => 'Text',
              'type' => 'group',
              'fieldsets' => [
                'text',
                'heading',
                'grid'
              ]
            ],
            'media' => [
              'label' => 'Media',
              'type' => 'group',
              'fieldsets' => [
                'image',
                'video'
              ]
            ]
          ]
    ]
];
plain-solutions-gmbh commented 2 years ago

Good Day Peter There is no need to manipulate the config.php to use Kirby-Grid-Block. You can use this Plugin, just by donwload it in your Plugin-Folder and putting this into a Blueprint:

fields:
  mygrid:
    type: block
    fieldsets:
      - grid

What do you intend to do?

peterstollenwerk commented 2 years ago

Hi youngcut I tried to configure a default block-set as described in the reference: https://getkirby.com/docs/reference/panel/fields/blocks#configuration

plain-solutions-gmbh commented 2 years ago

I don't think this has anything to do with this plugin. I can't reproduce it anyway. Does the error still exist when you deactivate this plugin: Rename: site/plugins/kirby-grid-blocks -> site/plugins/_kirby-grid-blocks

peterstollenwerk commented 2 years ago

I can´t reproduce it anymore. It is working for me too, now. I implemented everything your suggested 'fieldset'-way in the meantime, the rest stayed the same. Now, when i set up the default blocks in the config.php, everything works as expected. How can that be? Sorry for bothering and thank you for your help!