Open
Description
It would be great to be able to order collections.
The way this could work is: When I add a orderField
to my collection, the collection index page shows not only the slugField
but also the orderField
and allows to drag and drop the order which then updates the data of all relevant content/data files.
Something like this…
export const keystaticHomepageFactsConfig = collection({
label: 'Homepage Fakten-Boxen',
path: 'src/content/homepageFacts/*',
slugField: 'fact',
+ orderField: 'position',
schema: {
position: fields.number({ label: 'Reihenfolge', validation: { isRequired: true } }),
fact: fields.slug({ name: { label: 'Fakt' } }),
factSubline: fields.text({ label: 'Untertitel', validation: { isRequired: true } }),
description: fields.text({
label: 'Untertitel',
multiline: true,
validation: { isRequired: true },
}),
},
})