Giter VIP home page Giter VIP logo

content-viewer's Introduction

Content Viewer Kirby Widget

A nifty little Kirby widget that allows you to show a block of Kirbytext or Markdown content in Kirby's panel. It is particularly useful for providing documentation for website editors.

Screenshot of the widget

Installation and Setup

Clone or download this repo, rename the folder to content-viewer, and move it into your /site/plugins/ folder. If you are using the Kirby CLI, you can install it with this command:

kirby plugin:install CalebGrove/content-viewer

Now, open up the panel and you should see the new widget on the dashboard. To change the content, click on the Edit button at the top-right of the widget. This option will only be visible to users with the role of administrator.

If you want to customize the CSS, you may do so by copying the styles.css file from this plugin's assets folder to /assets/plugins/content-viewer/styles.css. Kirby will now serve your version of the file, and updating this plugin won't overwrite it.

Changelog

3/28/17

  • Much DRYer CSS.
  • The content page will no longer be visible in the panel, instead, users with the role of Administrator will see a new Edit option for the widget.
  • The full page view is no longer publicly visible. Now, the user must be logged in and have panel access to view it.
  • When the plugin is loaded for the first time, it will create the page automatically and prompt you to edit it.
  • Advanced config options were removed as my implementation of them was just too buggy.

content-viewer's People

Contributors

calebgrove avatar

Watchers

 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.