feat: manage press fallback labels via payload
This commit is contained in:
@@ -40,6 +40,11 @@ const eventFields: Field[] = [
|
||||
text('slug', 'Route'),
|
||||
]
|
||||
|
||||
const statusLabelFields: Field[] = [
|
||||
text('value', 'Raw status value'),
|
||||
text('label', 'Display label'),
|
||||
]
|
||||
|
||||
const newsFields: Field[] = [
|
||||
text('title', 'Title'),
|
||||
textarea('excerpt', 'Excerpt'),
|
||||
@@ -81,7 +86,20 @@ export const pressIndexFields: Field[] = [
|
||||
textarea('heading', 'Heading', pressIndexContent.events.heading),
|
||||
textarea('description', 'Description', pressIndexContent.events.description),
|
||||
text('detailLabel', 'Detail link label', pressIndexContent.events.detailLabel),
|
||||
text('defaultStatusLabel', 'Missing status fallback label', pressIndexContent.events.defaultStatusLabel),
|
||||
text('openStatusLabel', 'Open status label', pressIndexContent.events.openStatusLabel),
|
||||
text('missingTitleLabel', 'Missing event title label', pressIndexContent.events.missingTitleLabel),
|
||||
text('missingDateLabel', 'Missing event date label', pressIndexContent.events.missingDateLabel),
|
||||
text('missingLocationLabel', 'Missing event location label', pressIndexContent.events.missingLocationLabel),
|
||||
text('missingCategoryLabel', 'Missing event category label', pressIndexContent.events.missingCategoryLabel),
|
||||
uploadField('collectionFallbackImage', 'Missing event image fallback', `Current frontend image: /images/${pressIndexContent.events.collectionFallbackImageFilename}`),
|
||||
{
|
||||
name: 'statusLabels',
|
||||
label: 'Status display labels',
|
||||
type: 'array',
|
||||
defaultValue: pressIndexContent.events.statusLabels,
|
||||
fields: statusLabelFields,
|
||||
},
|
||||
{
|
||||
name: 'fallbackItems',
|
||||
label: 'Fallback event rows',
|
||||
@@ -102,6 +120,9 @@ export const pressIndexFields: Field[] = [
|
||||
textarea('heading', 'Heading', pressIndexContent.news.heading),
|
||||
textarea('description', 'Description', pressIndexContent.news.description),
|
||||
text('readMoreLabel', 'Read more label', pressIndexContent.news.readMoreLabel),
|
||||
text('missingTitleLabel', 'Missing news title label', pressIndexContent.news.missingTitleLabel),
|
||||
text('missingCategoryLabel', 'Missing news category label', pressIndexContent.news.missingCategoryLabel),
|
||||
uploadField('collectionFallbackImage', 'Missing news image fallback', `Current frontend image: /images/${pressIndexContent.news.collectionFallbackImageFilename}`),
|
||||
{
|
||||
name: 'fallbackItems',
|
||||
label: 'Fallback news cards',
|
||||
|
||||
Reference in New Issue
Block a user