Giter Site home page Giter Site logo

afbora / kirby-panel-button Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moritzebeling/kirby-panel-button

0.0 0.0 0.0 138 KB

Custom Kirby Panel button field to open or trigger URLs

Home Page: https://getkirby.com/plugins/moritzebeling/kirby-panel-button

JavaScript 14.96% PHP 37.26% CSS 1.47% Vue 46.31%

kirby-panel-button's Introduction

Kirby Panel Button Plugin

Kirby CMS button field to open URLs in a new tab or trigger webhooks

Custom Kirby Panel field, that displays a button that can be used to either open a URL in a new tab or to trigger some url or webhook and wait for success or error. This can be very helpful, when you have content that can be viewed or edited on some external service or domain.

Installation

composer require moritzebeling/kirby-panel-button
composer update moritzebeling/kirby-panel-button

Or download/clone this repo into site/plugins of your Kirby project.

If you’re working on a plugin which requires this plugin:

cd site/plugins/your-plugin
composer require moritzebeling/kirby-panel-button

Usage

myLinkButton:
  type: button
  label: Open URL in new tab
  text: Open # Button text
  url: "https://example.com/{{ page.slug }}"
  icon: edit
  open: true # open URL in new tab

myWebhookButton:
  type: button
  label: Refresh data
  text: Refresh
  url: /fetch-data
  theme: positive
  reload: true # trigger a page refresh on success to display updated data

Development

  1. Install a fresh Kirby StarterKit
  2. cd site/plugins
  3. git clone this repo
  4. cd into this plugin folder
npm run dev

Roadmap

  • Add multilang support
  • Refactor and simplify yml field configuration
  • Add a buttons section that allows to add some text and multiple buttons
  • Option to display result in dialog popup

☕️ Support

If you like this plugin, I would be glad if you would invite me for a coffee via PayPal If you have any ideas for further development or stumble upon any problems, please open an issue or PR. Thank you!

Warranty

This plugin is work in progress and comes without any warranty. Use at your own risk.

kirby-panel-button's People

Contributors

moritzebeling avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.