david-szabo97 / grav-plugin-admin-addon-revisions

An extension for Grav Admin plugin which adds revisions for pages.
MIT License
11 stars 8 forks source link

Admin Addon Revisions Plugin

The Admin Addon Revisions Plugin is for Grav CMS. An extension for Admin plugin which adds revisions for pages.

Installation

Installing the Admin Addon Revisions plugin can be done in one of two ways. The GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.

GPM Installation (Preferred)

The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's terminal (also called the command line). From the root of your Grav install type:

bin/gpm install admin-addon-revisions

This will install the Admin Addon Revisions plugin into your /user/plugins directory within Grav. Its files can be found under /your/site/grav/user/plugins/admin-addon-revisions.

Manual Installation

To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins. Then, rename the folder to admin-addon-revisions. You can find these files on GitHub or via GetGrav.org.

You should now have all the plugin files under

/your/site/grav/user/plugins/admin-addon-revisions

NOTE: This plugin is a modular component for Grav which requires Grav, Admin, Error and Problems to operate.

WARNING

Please make a backup before you install the plugin. This is advised to do before installing any new plugin!

Configuration

Before configuring this plugin, you should copy the user/plugins/admin-addon-revisions/admin-addon-revisions.yaml to user/config/plugins/admin-addon-revisions.yaml and only edit that copy.

Here is the default configuration and an explanation of available options:

enabled: true
directory: .revs
limit:
  maximum: 10
  older: 1 month
ignore_files: []

Usage

A Revisions link will appear in the Admin navigation sidebar. By navigating to the Revisions you can check the differences and delete/revert a specific revision.

To Do