-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { isNotIndex } from '../fields/is-not-index.js'; | ||
import { title } from '../fields/title.js'; | ||
import { weight } from '../fields/weight.js'; | ||
import { t } from '../i18n/translater.js'; | ||
|
||
const persons_statutes = { | ||
name: 'persons_statutes', | ||
folder: 'content/persons_statutes', | ||
label: t.content.persons_statutes.label, | ||
label_singular: t.content.persons_statutes.label_singular, | ||
description: t.content.persons_statutes.description, | ||
|
||
create: true, | ||
editor: { preview: false }, | ||
i18n: true, | ||
|
||
slug: '{{slug}}', | ||
path: '{{slug}}/_index', | ||
|
||
nested: { depth: 2 }, | ||
filter: { field: 'isIndex', value: false }, | ||
|
||
fields: [isNotIndex, title, weight] | ||
}; | ||
|
||
export default persons_statutes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { t } from '../i18n/translater.js'; | ||
|
||
export const persons_expertises = { | ||
name: 'persons_expertises', | ||
label: t.fields.persons_expertises, | ||
widget: 'relation', | ||
collection: 'expertises', | ||
search_fields: ['title'], | ||
value_field: '{{filename}}', | ||
display_fields: ['title'], | ||
multiple: true, | ||
required: false, | ||
i18n: 'duplicate' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { t } from '../i18n/translater.js'; | ||
|
||
export const persons_places = { | ||
name: 'persons_places', | ||
label: t.fields.persons_places, | ||
widget: 'relation', | ||
collection: 'places', | ||
search_fields: ['title'], | ||
value_field: '{{filename}}', | ||
display_fields: ['title'], | ||
multiple: true, | ||
required: false, | ||
i18n: 'duplicate' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { t } from '../i18n/translater.js'; | ||
|
||
export const persons_statutes = { | ||
name: 'persons_statutes', | ||
label: t.fields.persons_statutes, | ||
widget: 'relation', | ||
collection: 'persons_statutes', | ||
search_fields: ['title'], | ||
value_field: 'title', | ||
display_fields: ['title'], | ||
multiple: false, | ||
required: true, | ||
i18n: 'duplicate' | ||
}; |