Does anyone have an example of a panel plugin that could show up in the fields list of a page, without it persisting an empty string value when being saved?
What is your use case? Do you mean an input field, which is only saved when it contains content? Or no input field at all?
I mean no input field at all β but to have it in the listβ¦
Examples:
- a map where I can visualise geolocations of child pages
- a plugin that is showing me the link to the current page in my development and production environments
- widgets that perform utility like functionalities for editors
Yes, of course you can do that, the info and headline fields are perfect examples of fields that donβt save anything in the content file.
Other examples:
- the clone field: https://github.com/texnixe/kirby-clone-field
- the pref-next plugin: https://github.com/jenstornell/kirby-plugins/issues/416
- the subpagelist plugin: https://github.com/jenstornell/kirby-plugins/issues/27
2 Likes