New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Additional default blocks #1146
Comments
I think those blocks should be moved into the template. The template could provide custom blocks or remove blocks that are not supported. As developer I could define blocks from the customers pattern library and the customer would only use those blocks for his page. |
Yes, that would be welcome. However, the Publii development is only progressing slowly. So my suggestion would be to include more blocks as "standard". With "little" work (add 1-2 new fields) How the block will look then, still depends on the template (css). |
How is a block right now structured internally?
|
I would love to see an option to add custom blocks: even starting with something simple where i can wrap html around a user defined text. |
Feature Description
Is it possible to add additional variants / modules for the Block Editor?
I think so much could be realized with just a few more modules.
Here you could use the existing image module and extend it with 1-2 fields:
Here you could use the Gallery module and add 1-2 fields:
As you can see, the fields are mostly the same or similar. In the first step for example a class or ID for CSS could be entered manually. A selection of the CSS class would be perfect of course. (As already possible with the Gallery module).
This would be really helpful for building pages and I hope it is not much effort. (Duplicate default-blocks gallery and image + button/link/icon).
https://github.com/GetPublii/Publii/tree/master/app/src/components/block-editor/components/default-blocks
Thanks a lot!
The text was updated successfully, but these errors were encountered: