Works Kirby-Selector with Kirbybuilder
Opened this issue · 5 comments
Hi,
does anybody know if that plugin will work together with the KirbyBuilder?
I read this here on the Kirbybuilder page which it makes me thoughtful:
All issues related to the structure field of Kirby Panel do also affect the builder field. Builder fields do not support nested fields that require a modal to handle the content, i.e. structure fields or other builder fields.
Kind
Generally, from my experience the selector works fine in regular modal fields. I haven't tried it with the KirbyBuilder plugin, but I think it should be working, as well. Did you give it a try, yet?
I tried it, and it worked fine. That is, selection and subsequent data storage work as expected. The Edit and Add buttons don't do anything though.
It generally works fine. I'm using it for a client project and it's pretty handy.
There's one problem though: Kirby-Selector saves the selected images as a komma-separated list – but without spaces in-between each entry. And because the Kirby-Builder plugin just prints out this list in the field, you might end up getting a pretty long single-line string, which of course doesn't play nice with responsive design. Meaning: Your backend now scrolls horizontally.
@Targoran you could add in your custom panel css some rules to break the line.
Ref: https://css-tricks.com/snippets/css/prevent-long-urls-from-breaking-out-of-container/