Skip to content

A nifty little Kirby widget that allows you to show a block of Kirbytext or Markdown content in Kirby's panel.

License

Notifications You must be signed in to change notification settings

tisbert/content-viewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A nifty little Kirby widget that allows you to show a block of Kirbytext or Markdown content in Kirby's panel.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 57.8%
  • CSS 42.2%