• Stars
    star
    355
  • Rank 119,764 (Top 3 %)
  • Language
    PHP
  • License
    MIT License
  • Created over 9 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Grav Admin Plugin

Grav Standard Administration Panel Plugin

This admin plugin for Grav is an HTML user interface that provides a convenient way to configure Grav and easily create and modify pages. This will remain a totally optional plugin, and is not in any way required or needed to use Grav effectively. In fact, the admin provides an intentionally limited view to ensure it remains easy to use and not overwhelming. I'm sure power users will still prefer to work with the configuration files directly.

Features

  • User login with automatic password encryption
  • Forgot password functionality
  • Logged-in-user management
  • One click Grav core updates
  • Dashboard with maintenance status, site activity and latest page updates
  • Notifications system for latest news, blogs, and announcements
  • Ajax-powered backup capability
  • Ajax-powered clear-cache capability
  • System configuration management
  • Site configuration management
  • Normal and Expert modes which allow editing via forms or YAML
  • Page listing with filtering and search
  • Page creation, editing, moving, copying, and deleting
  • Powerful syntax highlighting code editor with instant Grav-powered preview
  • Editor features, hot keys, toolbar, and distraction-free fullscreen mode
  • Drag-n-drop upload of page media files including drag-n-drop placement in the editor
  • One click theme and plugin updates
  • Plugin manager that allows listing and configuration of installed plugins
  • Theme manager that allows listing and configuration of installed themes
  • GPM-powered installation of new plugins and themes

Support

Support

We have tested internally, but we hope to use this public beta phase to identify, isolate, and fix issues related to the plugin to ensure it is as solid and reliable as possible.

For live chatting, please use the dedicated Discord Chat Room for discussions directly related to Grav.

For bugs, features, improvements, please ensure you create issues in the admin plugin GitHub repository.

Installation

First ensure you are running the latest Grav 1.6.7 or later. This is required for the admin plugin to run properly (-f forces a refresh of the GPM index).

$ bin/gpm selfupgrade -f

The admin plugin actually requires the help of 3 other plugins, so to get the admin plugin to work you first need to install admin, login, forms, and email plugins. These are available via GPM, and because the plugin has dependencies you just need to proceed and install the admin plugin, and agree when prompted to install the others:

$ bin/gpm install admin

Manual Installation

Manual installation is not the recommended method of installation, however, it is still possible to install the admin plugin manually. Basically, you need to download each of the following plugins individually:

Extract each archive file into your user/plugins folder, then ensure the folders are renamed to just admin/, login/, form/, and email/. Then proceed with the Usage instructions below.

Usage

Create User with CLI

After this you need to create a user account with admin privileges:

$ bin/plugin login new-user

Create User Manually

Alternatively, you can create a user account manually, in a file called user/accounts/admin.yaml. This filename is actually the username that you will use to login. The contents will contain the other information for the user.

password: 'password'
email: '[email protected]'
fullname: 'Johnny Appleseed'
title: 'Site Administrator'
access:
  admin:
    login: true
    super: true

Of course you should edit your email, password, fullname, and title to suit your needs.

You can use any password when you manually put it in this .yaml file. However, when you change your password in the admin, it must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters.

Accessing the Admin

By default, you can access the admin by pointing your browser to http://yoursite.com/admin. You can simply log in with the username and password set in the YAML file you configured earlier.

After logging in, your plaintext password will be removed and replaced by an encrypted one.

Standard Free & Paid Pro Versions

If you have been following the blog, Twitter, Discord chat, etc., you probably already know now that our intention is to provide two versions of this plugin.

The standard free version, is very powerful, and has more functionality than most commercial flat-file CMS systems.

We also intend to release in the near future a more feature-rich pro version that will include enhanced functionality, as well as some additional nice-to-have capabilities. This pro version will be a paid plugin the price of which is not yet 100% finalized.

Admin Events

General events

  • onAdminRegisterPermissions - (admin)
  • onAdminThemeInitialized
  • onAdminPage - (page)
  • onAdminMenu
  • onAdminTwigTemplatePaths - (paths)

Page specific events

  • onAdminDashboard
  • onAdminTools - (tools)
  • onAdminLogFiles - (logs)
  • onAdminGenerateReports - (reports)

Tasks

  • onAdminControllerInit - (controller)
  • onAdminTaskExecute - (controller, method)

Editing

  • onAdminData
  • onAdminSave - (object)
  • onAdminAfterSave - (object)

Pages

  • onAdminPageTypes - (types)
  • onAdminModularPageTypes
  • onAdminSave - (page)
  • onAdminAfterSaveAs - (path)
  • onAdminAfterSave - (page)
  • onAdminAfterDelete - (page)
  • onAdminAfterAddMedia - (page)
  • onAdminAfterDelMedia - (page)
  • onAdminCreatePageFrontmatter - (header, data)

Running Tests

First install the dev dependencies by running composer update from the Grav root. Then composer test will run the Unit Tests, which should be always executed successfully on any site.

More Repositories

1

grav

Modern, Crazy Fast, Ridiculously Easy and Amazingly Powerful Flat-File CMS powered by PHP, Markdown, Twig, and Symfony
PHP
14,457
star
2

grav-learn

Grav Learn (exhaustive grav documentation)
SCSS
227
star
3

docker-grav

Official Docker Image for Grav
Dockerfile
197
star
4

awesome-grav

A curated list of awesome stuff to do with Grav
126
star
5

grav-skeleton-rtfm-site

Grav RTFM Skeleton
80
star
6

grav-theme-learn2

Learn2 Grav Theme
SCSS
80
star
7

grav-theme-quark

SCSS
65
star
8

grav-theme-antimatter

Grav Antimatter Theme
SCSS
58
star
9

grav-skeleton-resume-site

Resume Skeleton for Grav
57
star
10

grav-plugin-comments

Grav Comments Plugin
PHP
56
star
11

grav-theme-resume

Resume Theme for Grav
JavaScript
55
star
12

grav-plugin-form

Grav Form Plugin
PHP
53
star
13

grav-skeleton-blog-site

Grav Blog Site Skeleton
50
star
14

grav-plugin-shortcode-ui

Grav Shortcode UI Plugin
CSS
47
star
15

grav-plugin-shortcode-core

Grav Shortcode Core Plugin
JavaScript
46
star
16

grav-theme-ceevee

Ceevee is a clean, modern, fully responsive site template for your resume and portfolio. With this template, you can easily introduce yourself and showcase your works to future clients and employers. Also, it is flexible and easy to customize so you even use this template as a creative, business or portfolio site for your company.
CSS
46
star
17

grav-plugin-login

Grav Login Plugin
PHP
44
star
18

grav-plugin-simplesearch

Grav SimpleSearch Plugin
PHP
44
star
19

grav-plugin-sitemap

Grav Sitemap Plugin
PHP
42
star
20

grav-plugin-email

Grav Email Plugin
PHP
37
star
21

grav-plugin-devtools

Grav Devtools Plugin
Twig
37
star
22

grav-skeleton-ceevee-site

Ceevee is a clean, modern, fully responsive site template for your resume and portfolio. With this template, you can easily introduce yourself and showcase your works to future clients and employers. Also, it is flexible and easy to customize so you even use this template as a creative, business or portfolio site for your company.
35
star
23

grav-plugin-markdown-notices

Grav Markdown Notices Plugin
PHP
33
star
24

grav-plugin-page-inject

Grav Page Inject Plugin
JavaScript
32
star
25

grav-theme-landio

Land.io is a carefully crafted landing page UI kit and landing page template built on Bootstrap 4, designed by Peter Finlan and developed by Taty Grassini.
JavaScript
31
star
26

grav-plugin-featherlight

Grav Featherlight Plugin
PHP
30
star
27

grav-plugin-data-manager

Grav Data Manager Plugin
PHP
30
star
28

grav-plugin-highlight

Grav Highlight Plugin
JavaScript
29
star
29

grav-theme-deliver

Grav Deliver Theme
SCSS
28
star
30

grav-skeleton-deliver-site

Grav Deliver Site Skeleton
28
star
31

grav-plugin-langswitcher

Grav LangSwitcher Plugin
PHP
28
star
32

grav-theme-agency

Agency Theme for Grav
CSS
27
star
33

grav-plugin-pagination

Grav Pagination Plugin
PHP
27
star
34

grav-skeleton-landio-site

Land.io is a carefully crafted landing page UI kit and landing page template built on Bootstrap 4, designed by Peter Finlan and developed by Taty Grassini.
24
star
35

grav-skeleton-woo-site

Woo is a clean, modern, landing page site template. It has a fully responsive design and was tested on all major browser and mobile devices. Woo is the perfect template to showcase your apps, services or digital goods.
24
star
36

grav-plugin-taxonomylist

Grav TaxonomyList Plugin
PHP
24
star
37

grav-skeleton-onepage-site

Grav One-Page Site Skeleton
23
star
38

grav-plugin-youtube

Grav YouTube Plugin
PHP
23
star
39

grav-plugin-advanced-pagecache

Grav AdvancedPageCache Plugin
PHP
21
star
40

grav-theme-cacti

Grav Cacti Theme
CSS
21
star
41

grav-plugin-snipcart

Grav Snipcart Plugin
Twig
20
star
42

grav-plugin-readingtime

Grav ReadingTime Plugin
PHP
19
star
43

grav-plugin-breadcrumbs

Grav Breadcrumbs Plugin
PHP
19
star
44

grav-theme-boxify

"Boxify" is a Grav port of One Page Website Template by Peter Finlan for Codrops
CSS
18
star
45

grav-plugin-login-oauth

Grav Login Plugin OAuth Add-On
PHP
18
star
46

grav-plugin-relatedpages

Grav RelatedPages Plugin
PHP
17
star
47

grav-skeleton-agency-site

Agency Skeleton for Grav
17
star
48

grav-plugin-assets

Grav Assets Plugin
PHP
17
star
49

grav-skeleton-shop-site

Grav Shop Site Skeleton
17
star
50

grav-theme-bootstrap

Grav Bootstrap Theme
Twig
17
star
51

grav-plugin-feed

Grav Feed Plugin
PHP
16
star
52

grav-plugin-maintenance

Grav Maintenance Plugin
PHP
16
star
53

grav-plugin-cdn

Grav CDN Plugin
PHP
16
star
54

grav-theme-woo

Woo is a clean, modern, landing page site template. It has a fully responsive design and was tested on all major browser and mobile devices. Woo is the perfect template to showcase your apps, services or digital goods.
JavaScript
16
star
55

grav-theme-receptar

Receptar is simple, modern, responsive, high-DPI, fully customizable, stylish blog Grav theme.
CSS
14
star
56

grav-plugin-lightslider

Grav LightSlider Plugin
JavaScript
14
star
57

grav-theme-mediator

Mediator Grav Theme
SCSS
14
star
58

grav-skeleton-twenty-site

Twenty Skeleton for Grav
13
star
59

grav-plugin-github

Grav GitHub Plugin
PHP
13
star
60

grav-theme-lingonberry

A clean, simple and responsive theme for bloggers. Features responsive design, retina ready assets, custom styling for all post formats, custom page templates and custom accent color.
CSS
13
star
61

grav-skeleton-multilang-site

MultiLang Skeleton for Grav
12
star
62

grav-theme-gateway

Gateway incorporates elegant style with user friendly customizer options making it perfectly suited for a variety of Grav users. With rock solid development and flexible integration, the Gateway theme is sure to be a favorite for first time Grav users and experienced developers alike.
CSS
12
star
63

grav-plugin-auto-date

Grav Auto Date Plugin
PHP
12
star
64

grav-plugin-custom-css

Custom CSS Plugin: Add additional CSS to your site, without editing the theme or having to create a plugin for the simple task of adding some custom lines of sylesheets.
PHP
12
star
65

grav-plugin-editor-buttons

Grav Editor Buttons Plugin
JavaScript
12
star
66

grav-plugin-anchors

Grav Anchors Plugin
PHP
11
star
67

grav-skeleton-hpstr-site

HPSTR Grav Skeleton
11
star
68

grav-plugin-shortcode-owl-carousel

Grav Shortcode Owl Carousel Plugin
CSS
11
star
69

grav-skeleton-saturn-site

Saturn โ€“ Free Grav Theme, is a beautiful cosmic website template. Customize it easily and add your own creative touch. Designed by Afnizar Nur Ghifari
10
star
70

grav-plugin-problems

Grav Problems Plugin
SCSS
10
star
71

grav-plugin-bootstrapper

Grav Bootstrapper Plugin
JavaScript
10
star
72

grav-theme-saturn

Saturn โ€“ Free Grav Theme, is a beautiful cosmic website template. Customize it easily and add your own creative touch. Designed by Afnizar Nur Ghifari
JavaScript
10
star
73

grav-theme-pinpress

PinPress is a creative Flat Blog/Magazine blogger template and it is the perfect choice for professionals whoโ€™s looking for a magazine template or a personal, niche, corporate, and marketing blogs. PinPress blogger template is highly customizable so it can match your personal taste and be quickly converted into a multi-purpose theme as well.
CSS
10
star
74

grav-skeleton-mediator-site

Grav Skeleton Mediator
9
star
75

grav-skeleton-soraarticle-blog

Sora Article is a minimal Theme designed for blogger, ported to Grav.
9
star
76

grav-skeleton-striped-site

Striped by HTML5 UP, features a clean, minimalistic design, styling for all basic page elements, a repositionable sidebar (left or right), and HTML5/CSS3 code designed for quick and easy customization.
9
star
77

grav-skeleton-gateway-site

Gateway incorporates elegant style with user friendly customizer options making it perfectly suited for a variety of Grav users. With rock solid development and flexible integration, the Gateway theme is sure to be a favorite for first time Grav users and experienced developers alike.
9
star
78

grav-plugin-file-content

Grav File Content Plugin
PHP
9
star
79

grav-plugin-markdown-color

Grav Markdown Color Plugin
PHP
8
star
80

grav-plugin-database

PHP
8
star
81

grav-plugin-shortcode-assets

PHP
8
star
82

grav-skeleton-photographer-site

Modern photography portfolio.
8
star
83

grav-theme-learn4

SCSS
8
star
84

grav-skeleton-receptar-site

Receptar Skeleton for Grav - Receptar is simple, modern, responsive, high-DPI, fully customizable, stylish blog Grav theme.
8
star
85

grav-skeleton-notepad-site

Grav Notepad Site Skeleton
8
star
86

grav-plugin-archives

Grav Archives Plugin
PHP
8
star
87

grav-skeleton-halcyon-site

Halcyon Days is a modern and stylish HTML5/CSS3 template with a pixel-perfect design and smooth effects. Itโ€™s especially fitting for a portfolio or start-up website, but itโ€™s also very versatile and can be used for many other projects.
8
star
88

grav-skeleton-lingonberry-site

A clean, simple and responsive theme for bloggers. Features responsive design, retina ready assets, custom styling for all post formats, custom page templates and custom accent color.
8
star
89

grav-premium-issues

Official Grav Premium Issues repository to report problems or ask questions regarding the Premium products offered.
7
star
90

grav-plugin-precache

Grav PreCache Plugin
PHP
7
star
91

grav-theme-hpstr

HPSTR Grav Theme
JavaScript
7
star
92

grav-plugin-random

Grav Random Plugin
PHP
7
star
93

skeleton-builder

GitHub Action to create fully functional skeleton packages that include all the necessary dependencies
Shell
7
star
94

grav-theme-notepad

Notepad Grav Theme
CSS
7
star
95

grav-skeleton-pinpress-site

PinPress is a creative Flat Blog/Magazine grav theme and it is the perfect choice for professionals whoโ€™s looking for a magazine theme or a personal, niche, corporate, and marketing blogs. PinPress grav theme is highly customizable so it can match your personal taste and be quickly converted into a multi-purpose theme as well.
7
star
96

grav-theme-photographer

Photographer Theme for Grav - Modern photography portfolio.
JavaScript
6
star
97

grav-theme-twenty

Grav Twenty Theme
CSS
5
star
98

grav-plugin-star-ratings

Grav Star Ratings Plugin
PHP
5
star
99

grav-skeleton-boxify-site

"Boxify" is a Grav port of One Page Website Template by Peter Finlan for Codrops
5
star
100

grav-theme-twentyfifteen

TwentyFifteen Theme for Grav
CSS
5
star