Button calling PHP/JS inside the panel

Hi

I would like to be able to do this inside the panel:

  1. Upload a file
  2. Click on a button
  3. The button start PHP or Javascript-script which outputs a second file which is shown (to double check that the script worked) and “uploaded” to the page

Right now I run the script on my machine und push the generated file with git. Works fine. The problem is that in the future this will be done by somebody who doesn’t know git or the command line or anything like that so the magic needs to be hidden in a userfriendly interface :wink:

I don’t find a starting point in the Guide/Cookbook. Also, there is no “Button”-Field (https://getkirby.com/docs/reference/panel/fields).

Any help is very much appreciated.

Carsten

consider using my plugin

1 Like