diff --git a/src/collections/Collectibles/Collectibles.ts b/src/collections/Collectibles/Collectibles.ts index 40a8dc2..8764c82 100644 --- a/src/collections/Collectibles/Collectibles.ts +++ b/src/collections/Collectibles/Collectibles.ts @@ -126,6 +126,11 @@ export const Collectibles = buildVersionedCollectionConfig({ useAsTitle: fields.slug, defaultColumns: [fields.slug, fields.status], group: CollectionGroups.Collections, + description: + "A physical or digital item. This can be a book, a CD/DVD, a video game copy...\ + any product related to our Scope.\ + This can also include merchandises such as figurines, music boxes, posters, key chains...", + preview: ({ slug }) => `https://v3.accords-library.com/en/collectibles/${slug}`, hooks: { beforeDuplicate: beforeDuplicatePiping([ beforeDuplicateUnpublish, diff --git a/src/collections/Folders/Folders.ts b/src/collections/Folders/Folders.ts index 47623ab..e5c77bf 100644 --- a/src/collections/Folders/Folders.ts +++ b/src/collections/Folders/Folders.ts @@ -30,6 +30,10 @@ export const Folders = buildCollectionConfig({ admin: { useAsTitle: fields.slug, group: CollectionGroups.Collections, + defaultColumns: [fields.slug, fields.translations, fields.sections, fields.files, fields.icon], + description: + "Folders provide a way to structure our content. A folder can contain subfolders and/or files.", + preview: ({ slug }) => `https://v3.accords-library.com/en/folders/${slug}`, }, endpoints: [getRootFoldersEndpoint, getBySlugEndpoint], fields: [ @@ -41,6 +45,8 @@ export const Folders = buildCollectionConfig({ translatedFields({ name: fields.translations, admin: { useAsTitle: fields.translationsName }, + required: true, + minRows: 1, fields: [ { name: fields.translationsName, @@ -73,7 +79,7 @@ export const Folders = buildCollectionConfig({ ], }), { - name: fields.sectionsSubfolders, + name: fields.sectionsSubfolders, type: "relationship", relationTo: Collections.Folders, hasMany: true, diff --git a/src/collections/Pages/Pages.ts b/src/collections/Pages/Pages.ts index 01a7bf2..1d1154b 100644 --- a/src/collections/Pages/Pages.ts +++ b/src/collections/Pages/Pages.ts @@ -51,8 +51,17 @@ export const Pages = buildVersionedCollectionConfig({ defaultSort: fields.slug, admin: { useAsTitle: fields.slug, - defaultColumns: [fields.thumbnail, fields.slug], + defaultColumns: [ + fields.slug, + fields.thumbnail, + fields.backgroundImage, + fields.type, + fields.tags, + fields.translations, + fields.folders, + ], group: CollectionGroups.Collections, + preview: ({ slug }) => `https://v3.accords-library.com/en/pages/${slug}`, components: { BeforeListTable: [ () =>