From af160168f15b1cffe2422e182f62447e71b1fa14 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Mon, 24 Aug 2015 13:41:28 -0600 Subject: [PATCH] Revamped metadata to use same customizable array system as the site.yaml --- system/blueprints/config/site.yaml | 4 +-- system/blueprints/pages/default.yaml | 38 +++++----------------------- 2 files changed, 8 insertions(+), 34 deletions(-) diff --git a/system/blueprints/config/site.yaml b/system/blueprints/config/site.yaml index 033d76f52..06967ede6 100644 --- a/system/blueprints/config/site.yaml +++ b/system/blueprints/config/site.yaml @@ -89,8 +89,8 @@ form: type: array label: PLUGIN_ADMIN.METADATA help: PLUGIN_ADMIN.METADATA_HELP - placeholder_key: PLUGIN_ADMIN.NAME - placeholder_value: PLUGIN_ADMIN.CONTENT + placeholder_key: PLUGIN_ADMIN.METADATA_KEY + placeholder_value: PLUGIN_ADMIN.METADATA_VALUE routes: type: section diff --git a/system/blueprints/pages/default.yaml b/system/blueprints/pages/default.yaml index c146f82d3..061ddd7b1 100644 --- a/system/blueprints/pages/default.yaml +++ b/system/blueprints/pages/default.yaml @@ -79,40 +79,14 @@ form: toggleable: true help: PLUGIN_ADMIN.UNPUBLISHED_DATE_HELP - meta: - type: section - title: PLUGIN_ADMIN.METADATA - underline: true - - fields: - header.metadata.description: - type: textarea + header.metadata: toggleable: true - label: PLUGIN_ADMIN.DESCRIPTION - default: - validate: - max: 155 + type: array + label: PLUGIN_ADMIN.METADATA + help: PLUGIN_ADMIN.METADATA_HELP + placeholder_key: PLUGIN_ADMIN.METADATA_KEY + placeholder_value: PLUGIN_ADMIN.METADATA_VALUE - header.metadata.keywords: - type: text - toggleable: true - label: PLUGIN_ADMIN.KEYWORDS - validate: - max: 120 - - header.metadata.author: - type: text - toggleable: true - label: PLUGIN_ADMIN.AUTHOR - validate: - max: 120 - - header.metadata.robots: - type: text - toggleable: true - label: PLUGIN_ADMIN.ROBOTS - validate: - max: 120 taxonomies: type: section