From edaf811901ac39849a0b40058b2d923092330762 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Fri, 20 Dec 2019 20:56:50 +0200 Subject: [PATCH] Added raw root page support for `Flex Pages` --- CHANGELOG.md | 7 +++--- blueprints/admin/pages/root_raw.yaml | 34 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 blueprints/admin/pages/root_raw.yaml diff --git a/CHANGELOG.md b/CHANGELOG.md index 554d95cf..2bea541e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,13 +2,14 @@ ## mm/dd/2019 1. [](#new) - * Added ability to display **Changelogs** for `Grav`, `Plugins` and `Themes` + * Added ability to display **Changelogs** for `Grav`, `Plugins` and `Themes` + * Added raw root page support for `Flex Pages` # v1.10.0-rc.2 ## 12/04/2019 1. [](#new) - * Added support for hiding parts of admin by `Deny` permissions (`Flex Users` only) + * Added support for hiding parts of admin by `Deny` permissions (`Flex Users` only) * Optimized `parent` field for Flex Pages 1. [](#improved) * Improved `permissions` field to add support for displaying calculated permissions @@ -132,7 +133,7 @@ 1. [](#improved) * Various admin performance improvements 1. [](#bugfix) - * Fixed admin caching issues + * Fixed admin caching issues # v1.9.12 ## 12/04/2019 diff --git a/blueprints/admin/pages/root_raw.yaml b/blueprints/admin/pages/root_raw.yaml new file mode 100644 index 00000000..6b44bdad --- /dev/null +++ b/blueprints/admin/pages/root_raw.yaml @@ -0,0 +1,34 @@ +rules: + slug: + pattern: '[a-zA-Zа-яA-Я0-9_\-]+' + min: 1 + max: 200 + +form: + validation: loose + fields: + + tabs: + type: tabs + active: 1 + + fields: + content: + type: tab + title: PLUGIN_ADMIN.CONTENT + + fields: + frontmatter: + classes: frontmatter + type: editor + label: PLUGIN_ADMIN.FRONTMATTER + autofocus: true + codemirror: + mode: 'yaml' + indentUnit: 4 + autofocus: true + indentWithTabs: false + lineNumbers: true + styleActiveLine: true + gutters: ['CodeMirror-lint-markers'] + lint: true