plain-solutions-gmbh / kirby-column-blocks

Use columns in block fields based on the layout field.
MIT License
35 stars 0 forks source link

No preview for blocks extending/replacing 'columns' block #5

Closed CHE1RON closed 1 year ago

CHE1RON commented 1 year ago

Hey there, when creating eg blueprints/blocks/text.columns.yml like this ..

extends: blocks/columns
fields:
  layout:
    layouts:
      - "1/2, 1/2"
      - "1/3, 1/3, 1/3"
      - "1/4, 1/4, 1/4, 1/4"
    fieldsets:
      - heading
      - text
      - image

.. then there's no preview - here I created two normal columns blocks and one text.columns (see above), and they are rendered like this:

Screenshot 2023-02-19 at 09 23 09

I may edit its contents, but only by clicking on the pencil, so I guess that's not desired behavior 😉

Cheers, CHE1RON

PHP: 8.0.28 Kirby: 3.9.1

plain-solutions-gmbh commented 1 year ago

Yes, i know. The expected behavior should be, that the layout dialog opens automaticlly, once the block is created. Didn't find a solution for that yet. But if someone knows a way to do that, feel free to open a pr.

CHE1RON commented 1 year ago

Alright, I'll investigate and report back.

plain-solutions-gmbh commented 1 year ago

Or you can wait few days. I'm working on a new section plugin, thats easier to set up and gives more possibilities. Stay tuned.

plain-solutions-gmbh commented 1 year ago

As i promised you, here is a improved replacement for this Plugin. Keep in mind, that this is beta. And has also a bug inside. I looking forward, that someone take care of that. Maybe you'il find a solution. 🤔

CHE1RON commented 1 year ago

👍 thanks!