Whats the difference between modules and the kirby builder plugin? Is it just the way you use it? Both seem to be modular and do the same (currently just tried the builder plugin)
The builder field stores the modules in a field of the page (similar to a structure field) while the modules plugin stores them as subpages. Subpages allow full-blown blueprints and also files.
Hi!
Its AWESOME field. I mean this brings pages to whole new level.
c
I dont know if i should write suggestions here or on the github but i have little one.
Considering previews - this is probably very usual case - we have module just for one image and simple is a must there:
I think would be better to put rowbar title/edit/delete on top of the preview, not the bottom. It makes sense to use module title as headline/name.
I cant think of any reason why it would be better to put preview on top, but maybe thats because people are using much bigger components with much more content⊠but it would be pretty nice to maybe have option for position of the preview area?
More i think about it - maybe it would be even better if in the preview i could do the whole fild by myself (ditch the rowbaer. Im not sure if this would be easily achieveable but being able to make custom edit/delete buttons and well desingn the whole field would be useful.
I dontât think that would be a common use case. What kind of âstylingâ are you thinking about? Perhaps modifying the css with a custom panel css would do the trick.
Well since you already have that lovely separation of module and module.preview in one folder i think you just can leave people to change how to change the whole preview by themselves? The edit and delete buttons are tied to js or its just a url?
What i am saying you are adding some html to the whole module preview (rowbar with buttons and title) - wouldnt just be better to be able to not add the html of rowbar and in docs say what are the links to deleting and editing ?
For now there are only links and the delete button opens a modal bind to a data attribute. Nothing fancy but I think this would make the field more prone to errors. A fork with a custom template would be the best way to go for now if a custom css does not do the trick.
Great timing . Just finished a working version.
If you want to try it out get the v2 branch here. Would love to get some Feedback.
Iâll try to add a basic readme today but for now the new Features are.
duplicate a module
copy / paste functionality across pages
Currently the copy button on the bottom of the field does not work.
To copy one or more modules to the clipboard use the meta + c shortcut for now. Press meta + v or the button on the bottom to paste modules.
You can multiselect modules by holding the meta key pressed. Multiselection with the shift key is planned but not working either at the moment.
The field should work with any v1.2 blueprint.
One last note:
The field is a plugin now!
To install the field, please put it in the site/plugins/modules-field directory.
Does not work here and i donât know why⊠because this error handlerâŠWTF!?
Fatal error: Call to undefined method Whoops\Handler\PlainTextHandler::generateResponse() in /home/sven/workspace/kirby/kirbymodule/kirby/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php on line 238
EDIT: switched to dev-branch to get rid of WHOOPS, now i got this:
Fatal error: Uncaught exception âExceptionâ with message âThe modules field is missing. Please add it to your installed fields or remove it from your blueprintâ in /home/sven/workspace/kirby/kirbymodule/panel/app/src/panel/form.php:242 Stack trace: #0 /home/sven/workspace/kirby/kirbymodule/panel/app/src/panel/form.php(84): Kirby\Panel\Form::field(âmodulesâ, Array) #1 /home/sven/workspace/kirby/kirbymodule/panel/app/src/panel/form.php(41): Kirby\Panel\Form->fields(Array) #2 /home/sven/workspace/kirby/kirbymodule/panel/app/forms/pages/edit.php(9): Kirby\Panel\Form->__construct(Array, Array) #3 [internal function]: Kirby\Panel->{closure}(Object(Kirby\Panel\Models\Page)) #4 /home/sven/workspace/kirby/kirbymodule/kirby/vendor/getkirby/toolkit/helpers.php(270): call_user_func_array(Object(Closure), Array) #5 /home/sven/workspace/kirby/kirbymodule/panel/app/src/panel.php(326): call(Object(Closure), Object(Kirby\Panel\Models\Page)) #6 /home/sven/workspace/kirby/kirbymodule/panel/app/src/panel/models/page.php(145): Kirby\Panel->fo in /home/sven/workspace/kirby/kirbymodule/panel/app/src/panel/form.php on line 242