@byline/cli 1.11.1 → 1.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -75,9 +75,4 @@ const pickerViewColumns: ColumnDefinition[] = [
|
|
|
75
75
|
export const NewsCategoriesAdmin: CollectionAdminConfig = defineAdmin(NewsCategories, {
|
|
76
76
|
columns: listViewColumns,
|
|
77
77
|
picker: pickerViewColumns,
|
|
78
|
-
// Demonstration of `orderable: true` — short, finite, naturally ordered.
|
|
79
|
-
// Editors can drag rows in the list view to set a canonical order; the
|
|
80
|
-
// value persists on `byline_documents.order_key` without bumping the
|
|
81
|
-
// document version. See docs/ORDERABLE.md.
|
|
82
|
-
orderable: true,
|
|
83
78
|
})
|
|
@@ -24,6 +24,11 @@ export const NewsCategories = defineCollection({
|
|
|
24
24
|
search: { fields: ['name'] },
|
|
25
25
|
useAsTitle: 'name',
|
|
26
26
|
useAsPath: 'name',
|
|
27
|
+
// Demonstration of `orderable: true` — short, finite, naturally ordered.
|
|
28
|
+
// Editors can drag rows in the list view to set a canonical order; the
|
|
29
|
+
// value persists on `byline_documents.order_key` without bumping the
|
|
30
|
+
// document version. See docs/ORDERABLE.md.
|
|
31
|
+
orderable: true,
|
|
27
32
|
fields: [
|
|
28
33
|
{ name: 'name', label: 'Name', type: 'text', localized: true },
|
|
29
34
|
{ name: 'description', label: 'Description', type: 'textArea', localized: true },
|