feat(Directus): Ajout du champ techniques aliases pour faire des redirections simples

This commit is contained in:
Simon 2023-03-13 11:26:45 +01:00
parent 22c4a42f8a
commit 916a9650fe
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,7 @@ const config = {
collections: {
Pages: {
readByQueryOption: {
fields: ['title', 'description', 'slug', 'image', 'image_credit', 'content', 'menu_display', 'sort', 'identifier', 'menu_title', 'parent', 'layout'],
fields: ['title', 'description', 'slug', 'image', 'image_credit', 'content', 'menu_display', 'sort', 'identifier', 'menu_title', 'parent', 'layout', 'aliases'],
filterDraft
},
pathBuilder: (page) => {
@ -16,6 +16,7 @@ const config = {
if (!page.layout) delete page.layout
if (!page.image) delete page.image
if (!page.image_credit) delete page.image_credit
if (!page.aliases) delete page.aliases
if (page.menu_display) {
page.menu = {