Git Product home page Git Product logo

kirby-revisions's Introduction

Kirby Revisions 2

Version 2.5 beta - For version 1, see version-1 branch.

I do not guarantee that this is a safe way to backup and restore backups.

Screenshots

Page with revisions

Revisions archive

A revision

1. Install

Kirby CLI

Run this command:

kirby plugin:install jenstornell/kirby-revisions

Manually

Add the folder kirby-revisions into /site/plugins/.

2. Setup

To show the revisions on the page you need to add a field for it.

Blueprint

fields:
  revisions:
    label: Revisions
    type: revisions

3. Remove revisions in the queries

Every page that has revisions will have a folder called revisions. In your templates and snippets you need to remove it from your query.

To do that you can use a collection filter:

https://getkirby.com/docs/developer-guide/objects/collections An example might be added in a later point of time.

Changelog

2.5

  • **Feature: **Added latest/current revision as a date in the field footer
  • Feature: Added option plugin.revisions.panel.root.url to set if the panel is installed in another location than default
  • Feature: Delete revision from inside revision
  • Feature: Delete all revisions from page
  • Feature: Delete all in revision archive
  • Feature: Confirm warning before delete added on all revision fields
  • Feature: Sidebar added with template, action and diff
  • Feature: Diff numbers added to field tables
  • Feature: Warning if template name differs to original
  • Feature: Show fields not in blueprint separated
  • Enhancement: Moved css from inline to assets/css
  • Enhancement: Fields now share the same snippets where possible
  • Enhancement: Renamed Updated to Modified in the page field
  • Enhancement: Removed icons to get more space in page field
  • Enhancement: Uses own table CSS instead of borrowing the structure field style
  • Fix: Revisions per page in revision archive are now 25 instead of 5
  • Fix: Hide latest/current revision to prevent rollback to itself
  • Fix: Added site()->errorPage() instead of error to go

2.4

  • Bugfix: Fixed issue with rollback in multi language

2.3

  • Bugfix: Fixed an issue so it also work without multi language

2.2

  • Bugfix: Corrected an error in package.json
  • Bugfix: Added fix for pages that don't have revisions yet
  • Feature: Added filesize to revisions fields

2.1

  • Bugfix: Renamed revisions.php to kirby-revisions.php to match the folder name.
  • Renamed type to action.

2.0

  • Completely rewritten
  • Kirby uses pages as revisions

Misc

Requirements: Kirby 2.3.2 License: MIT

kirby-revisions's People

Contributors

jenstornell 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.