feat(Directus): Ajout du champ techniques aliases pour faire des redirections simples
This commit is contained in:
parent
22c4a42f8a
commit
916a9650fe
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue