diff --git a/content/00-getting-started/index.yaml b/content/00-getting-started/index.yaml index d8898ce..a5b96a3 100644 --- a/content/00-getting-started/index.yaml +++ b/content/00-getting-started/index.yaml @@ -11,3 +11,5 @@ meta: noindex: false contains: pages template: '' +cyanine: + template: standard diff --git a/system/typemill/author/js/vue-meta.js b/system/typemill/author/js/vue-meta.js index 0a08881..653c8a7 100644 --- a/system/typemill/author/js/vue-meta.js +++ b/system/typemill/author/js/vue-meta.js @@ -50,7 +50,16 @@ const app = Vue.createApp({ else { eventBus.$emit("showEditor", false); - return 'tab-' + this.currentTab.toLowerCase() + + const componentName = 'tab-' + this.currentTab.toLowerCase(); + + + if (this.$root.$options.components && this.$root.$options.components[componentName]) + { + return componentName; + } + + return 'tab-defaulttab'; } } }, @@ -309,4 +318,58 @@ app.component('tab-meta', { } } } +}) + +app.component('tab-defaulttab', { + props: ['item', 'formData', 'formDefinitions', 'saved', 'errors', 'message', 'messageClass'], + data: function () { + return { + disabled: true, + } + }, + template: `
+
+
+
+ {{ fieldDefinition.legend }} + + +
+ + +
+
+
+ +
{{ $filters.translate(message) }}
+
+
+ +
+
+
`, + methods: { + selectComponent: function(type) + { + return 'component-' + type; + }, + saveInput: function() + { + this.$emit('saveform'); + }, + } }) \ No newline at end of file diff --git a/themes/cyanine/cyanine.yaml b/themes/cyanine/cyanine.yaml index f2507ce..00876b5 100644 --- a/themes/cyanine/cyanine.yaml +++ b/themes/cyanine/cyanine.yaml @@ -900,6 +900,8 @@ metatabs: type: checkbox label: 'Glossary List (cyanine theme)' checkboxlabel: 'List pages or posts of this folder as glossary (only for folders)' + cyanine: + fields: fieldsetTemplates: type: fieldset legend: 'Templates'