diff --git a/content/00-welcome/00-setup-your-website.yaml b/content/00-welcome/00-setup-your-website.yaml index 741266a..44887da 100644 --- a/content/00-welcome/00-setup-your-website.yaml +++ b/content/00-welcome/00-setup-your-website.yaml @@ -1,9 +1,15 @@ meta: title: 'Setup Your Website' description: 'Typemill provides detailed settings, and you have access to nearly all settings in the author panel. Learn the basics in this short video:' + heroimage: '' + heroimagealt: null owner: trendschau author: 'Sebastian Schürmanns' + manualdate: null + modified: '2021-05-27' created: '2021-05-27' time: 21-02-24 navtitle: 'setup your website' - modified: '2021-05-27' + hide: false + allowedrole: null + alloweduser: null diff --git a/content/00-welcome/02-manage-access.md b/content/00-welcome/01-manage-access.md similarity index 100% rename from content/00-welcome/02-manage-access.md rename to content/00-welcome/01-manage-access.md diff --git a/content/00-welcome/02-manage-access.yaml b/content/00-welcome/01-manage-access.yaml similarity index 100% rename from content/00-welcome/02-manage-access.yaml rename to content/00-welcome/01-manage-access.yaml diff --git a/content/00-welcome/01-write-content.md b/content/00-welcome/02-write-content.md similarity index 100% rename from content/00-welcome/01-write-content.md rename to content/00-welcome/02-write-content.md diff --git a/content/00-welcome/02-write-content.yaml b/content/00-welcome/02-write-content.yaml new file mode 100644 index 0000000..e73df21 --- /dev/null +++ b/content/00-welcome/02-write-content.yaml @@ -0,0 +1,23 @@ +meta: + title: 'Write Content' + description: 'Typemill is a simple Flat File Content Management System (CMS). We (the community) work hard to provide the best author experience with easy and intuitive authoring tools. But Typemill is still in early development and it is likely that not everything will work perfectly out of the box.' + heroimage: '' + heroimagealt: 'Hero Alternative' + owner: null + author: 'Sebastian Schürmanns' + manualdate: null + modified: '2021-01-30' + created: null + time: null + navtitle: '' + hide: false + allowedrole: administrator + alloweduser: 'trendschau, testmember' +seo: + heroimage: media/live/bildschirmfoto-zu-2019-08-30-20-46-29.png + heroimagealt: 'My Alt-Text' +adamhall: + myfield: + - + key: b + value: 'Das muss eine schöne Sache sei' diff --git a/system/author/js/vue-navi.js b/system/author/js/vue-navi.js index 6b7a3d0..109ee14 100644 --- a/system/author/js/vue-navi.js +++ b/system/author/js/vue-navi.js @@ -1,13 +1,42 @@ const navcomponent = Vue.component('navigation', { template: '#navigation-template', - props: ['homepage', 'name', 'hide', 'newItem', 'parent', 'active', 'filetype', 'status', 'elementtype', 'contains', 'element', 'folder', 'level', 'url', 'root', 'freeze', 'collapse'], + props: ['homepage', 'name', 'hide', 'newItem', 'parent', 'active', 'filetype', 'status', 'elementtype', 'contains', 'element', 'folder', 'level', 'url', 'root', 'freeze'], data: function () { return { showForm: false, revert: false, + collapse: [], + } + }, + mounted: function(){ + collapse = localStorage.getItem('collapse'); + if(collapse !== null) + { + this.collapse = collapse.split(','); } }, methods: { + toggleCollapse: function(name) + { + var index = this.collapse.indexOf(name); + if (index > -1) + { + this.collapse.splice(index, 1); + } + else + { + this.collapse.push(name); + } + localStorage.setItem("collapse", this.collapse.toString()); + }, + isCollapsed: function(name) + { + if(this.collapse.indexOf(name) > -1) + { + return true; + } + return false; + }, checkMove : function(evt) { if(evt.dragged.classList.contains('folder') && evt.from.parentNode.id != evt.to.parentNode.id) diff --git a/system/author/partials/editorNavi.twig b/system/author/partials/editorNavi.twig index d85f009..4c0c296 100644 --- a/system/author/partials/editorNavi.twig +++ b/system/author/partials/editorNavi.twig @@ -33,7 +33,6 @@ :contains="item.contains" :filetype="item.fileType" :status="item.status" - :collapse="false" :folder="item.folderContent" > @@ -59,10 +58,10 @@ {% verbatim %}