Added preview links to all media
This commit is contained in:
parent
5e306cfde3
commit
afc8cde2c2
|
@ -28,6 +28,7 @@ export const Audios = buildCollectionConfig({
|
|||
defaultSort: fields.updatedAt,
|
||||
admin: {
|
||||
group: CollectionGroups.Media,
|
||||
preview: ({ slug }) => `https://v3.accords-library.com/en/audios/${slug}`,
|
||||
defaultColumns: [
|
||||
fields.filename,
|
||||
fields.thumbnail,
|
||||
|
|
|
@ -25,7 +25,10 @@ export const Images = buildImageCollectionConfig({
|
|||
singular: "Image",
|
||||
plural: "Images",
|
||||
},
|
||||
admin: { defaultColumns: [fields.filename, fields.posts, fields.updatedAt] },
|
||||
admin: {
|
||||
preview: ({ slug }) => `https://v3.accords-library.com/en/images/${slug}`,
|
||||
defaultColumns: [fields.filename, fields.posts, fields.updatedAt],
|
||||
},
|
||||
upload: {
|
||||
imageSizes: [
|
||||
{
|
||||
|
|
|
@ -37,6 +37,7 @@ export const Videos = buildCollectionConfig({
|
|||
defaultSort: fields.updatedAt,
|
||||
admin: {
|
||||
group: CollectionGroups.Media,
|
||||
preview: ({ slug }) => `https://v3.accords-library.com/en/videos/${slug}`,
|
||||
defaultColumns: [
|
||||
fields.filename,
|
||||
fields.thumbnail,
|
||||
|
|
Loading…
Reference in New Issue