Hi there, I am currently working at my first universal Kirby mini plugin that I intend to release.
Kirby Button Field
Custom Kirby Panel button field to open or trigger URLs
It lets you add an button to your blueprint that can either open a URL in a new tab (eg. to refer the user to some external website) or it can trigger some URL and wait for the response (eg. to trigger some web hook or Kirby route).
I would be happy if some people would try it and suggest ideas for improvement, file issues or PRs. I will later also add it to the plugins archive on the Kirby website.
Thank you!
1 Like
I’m trying to use the plugin. But I can’t understand what I have to do to let the button turn to green…
Thank you!
fields:
nm_butt1:
type: button
text: Allinea date
url: "https://localhost/hunted15/site-core/command_panel?action=nmSetDate&uri={{page.uri}}"
icon: edit
open: false
texnixe
January 27, 2023, 10:03pm
3
The button will be green when you add a theme, see documentation of the plugin.
The red color probably means you clicked on the field and your endpoint returned an error.
1 Like
David
January 28, 2023, 9:17am
4
Make sure that the response of the call is valid json.
Had the same problem yesterday.
The page reload still doesn’t work.
Can I add a response message? E.g. after the webhook has been finished that the button says something like “Success”?
bnomei
April 8, 2023, 8:26pm
6
thanks bruno, i tried your plugin before and didn’t know it already had advanced functions to customize action buttons.
It seems to be a bit more complicated but I will certainly do a few tests. Thanks for the suggestion.