How to listen to events of changing the value of fields using Kirby? Can you enlist your help and get links to the CMS Kirby documentation section to implement each of the steps you have proposed?
Your code has to listen to a change in that field even before that change is stored anywhere on the server
When a change happens, your code has to get the value from that field (from the content store) and query the files and tags via a route/endpoint.
Then insert the results on the fly into the other fields.
I would be very grateful!
Since he is not there, then there is no way to interact with him? And accordingly, I can’t hang an event listener on it so that the second field understands the page has changed or not?
It doesn’t mean any such thing. The UI Kit is intended for you to use in your own Panel extensions. Has nothing to do with you being able to work with that field from your code.
Plus the fact that it is not documented for whatever reason, doesn’t mean you can’t use this field type.
If you want to address a particular field, you have to get it by it’s name, not type anyway.
Tell me, what am I doing wrong? I did everything according to the instructions. But when I try to select a page in a custom floor, the panel gives an error: Cannot read property ‘field’ of undefined
If you look at the original field, it imports the filepicker mixin and does all sorts of other stuff. It won’t just work by putting a simple template into the CustomField.vue file.
But I’ve never extended a field myself yet, so can’t really tell you much about it. Looking at example fields in existing plugins can probably help.
We are definitely lacking docs for custom field implementations. I’m really sorry about that. Please give me some time to setup an example for this today and get back to you.