diff --git a/config.yml b/config.yml index b81f032f..2a5e1670 100644 --- a/config.yml +++ b/config.yml @@ -42,6 +42,7 @@ collections: search_fields: ["title", "case.caseid"] value_field: "/newsroom/articles/{{slug}}" display_fields: ["title", "case.caseid"] + i18n: true multiple: false - { label: "Received an email", @@ -142,10 +143,59 @@ collections: - name: "faq" label: "FAQ" - file: "content/faq/_index.md" + files: + - label: "Fixed FAQ" + name: "fixedfaq" + file: "content/faq/_index.en.md" + slug: "_index" + create: false + fields: + - label: "Title" + name: "title" + widget: "string" + default: "faq" + i18n: true + - label: "Opener" + name: "opener" + widget: "string" + i18n: true + - label: "Intro" + name: "intro" + widget: "text" + i18n: true + - label: "FAQ groups" + name: "faqgroups" + widget: list + i18n: true + fields: + - { label: "heading", name: "heading", widget: "string", i18n: true } + - { + label: "FAQs", + name: "faqs", + widget: list, + i18n: true, + fields: + [ + { + label: "Title", + name: "title", + widget: "string", + i18n: true, + }, + { + label: "Description", + name: "description", + widget: "markdown", + i18n: true, + }, + ], + } + + - name: "dynamicfaq" + label: "Dynamic FAQ" folder: "content/faq" - slug: "_index" - create: false + create: true + slug: "{{slug}}" i18n: true fields: - label: "Title" @@ -161,6 +211,14 @@ collections: name: "intro" widget: "text" i18n: true + - label: "Button text" + name: "button_text" + widget: "string" + i18n: true + - label: "Button url" + name: "button_url" + widget: "string" + i18n: true - label: "FAQ groups" name: "faqgroups" widget: list @@ -531,6 +589,80 @@ collections: ], } - { label: "Body", name: "body", widget: "markdown", i18n: true } + - { label: "Enable FAQ", name: "faq_enabled", widget: "boolean", default: false } + - { + label: "FAQ", + required: false, + name: "faq", + widget: "object", + collapsed: true, + fields: [ + { + label: "FAQ Title", + name: "title", + widget: "string", + default: "faq", + required: false, + i18n: true + }, + { + label: "FAQ Opener", + name: "opener", + widget: "string", + required: false, + i18n: true + }, + { + label: "FAQ Intro", + name: "intro", + widget: "text", + required: false, + i18n: true + }, + { + label: "FAQ 'All FAQ' Url", + name: "url", + widget: "string", + required: false, + i18n: true + }, + { + label: "FAQ groups", + name: "faqgroups", + widget: list, + i18n: true, + required: false, + fields: + [ + { label: "heading", name: "heading", widget: "string", required: false, i18n: true }, + { + label: "FAQs", + name: "faqs", + widget: list, + i18n: true, + required: false, + fields: + [ + { + label: "Title", + name: "title", + widget: "string", + required: false, + i18n: true, + }, + { + label: "Description", + name: "description", + widget: "markdown", + required: false, + i18n: true, + }, + ], + } + ] + } + ] + } ###################################### # SECTION: Contribute diff --git a/development/config-dev.yml b/development/config-dev.yml index e9110fa7..83f12953 100644 --- a/development/config-dev.yml +++ b/development/config-dev.yml @@ -41,6 +41,7 @@ collections: search_fields: ["title", "case.caseid"] value_field: "/newsroom/articles/{{slug}}" display_fields: ["title", "case.caseid"] + i18n: true multiple: false - { label: "Received an email", @@ -141,10 +142,59 @@ collections: - name: "faq" label: "FAQ" - file: "content/faq/_index.md" + files: + - label: "Fixed FAQ" + name: "fixedfaq" + file: "content/faq/_index.en.md" + slug: "_index" + create: false + fields: + - label: "Title" + name: "title" + widget: "string" + default: "faq" + i18n: true + - label: "Opener" + name: "opener" + widget: "string" + i18n: true + - label: "Intro" + name: "intro" + widget: "text" + i18n: true + - label: "FAQ groups" + name: "faqgroups" + widget: list + i18n: true + fields: + - { label: "heading", name: "heading", widget: "string", i18n: true } + - { + label: "FAQs", + name: "faqs", + widget: list, + i18n: true, + fields: + [ + { + label: "Title", + name: "title", + widget: "string", + i18n: true, + }, + { + label: "Description", + name: "description", + widget: "markdown", + i18n: true, + }, + ], + } + + - name: "dynamicfaq" + label: "Dynamic FAQ" folder: "content/faq" - slug: "_index" - create: false + create: true + slug: "{{slug}}" i18n: true fields: - label: "Title" @@ -160,6 +210,14 @@ collections: name: "intro" widget: "text" i18n: true + - label: "Button text" + name: "button_text" + widget: "string" + i18n: true + - label: "Button url" + name: "button_url" + widget: "string" + i18n: true - label: "FAQ groups" name: "faqgroups" widget: list @@ -530,6 +588,80 @@ collections: ], } - { label: "Body", name: "body", widget: "markdown", i18n: true } + - { label: "Enable FAQ", name: "faq_enabled", widget: "boolean", default: false } + - { + label: "FAQ", + required: false, + name: "faq", + widget: "object", + collapsed: true, + fields: [ + { + label: "FAQ Title", + name: "title", + widget: "string", + default: "faq", + required: false, + i18n: true + }, + { + label: "FAQ Opener", + name: "opener", + widget: "string", + required: false, + i18n: true + }, + { + label: "FAQ Intro", + name: "intro", + widget: "text", + required: false, + i18n: true + }, + { + label: "FAQ 'All FAQ' Url", + name: "url", + widget: "string", + required: false, + i18n: true + }, + { + label: "FAQ groups", + name: "faqgroups", + widget: list, + i18n: true, + required: false, + fields: + [ + { label: "heading", name: "heading", widget: "string", required: false, i18n: true }, + { + label: "FAQs", + name: "faqs", + widget: list, + i18n: true, + required: false, + fields: + [ + { + label: "Title", + name: "title", + widget: "string", + required: false, + i18n: true, + }, + { + label: "Description", + name: "description", + widget: "markdown", + required: false, + i18n: true, + }, + ], + } + ] + } + ] + } ###################################### # SECTION: Contribute diff --git a/staging/config-staging.yml b/staging/config-staging.yml index fc5188cb..4380cd59 100644 --- a/staging/config-staging.yml +++ b/staging/config-staging.yml @@ -42,6 +42,7 @@ collections: search_fields: ["title", "case.caseid"] value_field: "/newsroom/articles/{{slug}}" display_fields: ["title", "case.caseid"] + i18n: true multiple: false - { label: "Received an email", @@ -142,10 +143,59 @@ collections: - name: "faq" label: "FAQ" - file: "content/faq/_index.md" + files: + - label: "Fixed FAQ" + name: "fixedfaq" + file: "content/faq/_index.en.md" + slug: "_index" + create: false + fields: + - label: "Title" + name: "title" + widget: "string" + default: "faq" + i18n: true + - label: "Opener" + name: "opener" + widget: "string" + i18n: true + - label: "Intro" + name: "intro" + widget: "text" + i18n: true + - label: "FAQ groups" + name: "faqgroups" + widget: list + i18n: true + fields: + - { label: "heading", name: "heading", widget: "string", i18n: true } + - { + label: "FAQs", + name: "faqs", + widget: list, + i18n: true, + fields: + [ + { + label: "Title", + name: "title", + widget: "string", + i18n: true, + }, + { + label: "Description", + name: "description", + widget: "markdown", + i18n: true, + }, + ], + } + + - name: "dynamicfaq" + label: "Dynamic FAQ" folder: "content/faq" - slug: "_index" - create: false + create: true + slug: "{{slug}}" i18n: true fields: - label: "Title" @@ -161,6 +211,14 @@ collections: name: "intro" widget: "text" i18n: true + - label: "Button text" + name: "button_text" + widget: "string" + i18n: true + - label: "Button url" + name: "button_url" + widget: "string" + i18n: true - label: "FAQ groups" name: "faqgroups" widget: list @@ -531,6 +589,80 @@ collections: ], } - { label: "Body", name: "body", widget: "markdown", i18n: true } + - { label: "Enable FAQ", name: "faq_enabled", widget: "boolean", default: false } + - { + label: "FAQ", + required: false, + name: "faq", + widget: "object", + collapsed: true, + fields: [ + { + label: "FAQ Title", + name: "title", + widget: "string", + default: "faq", + required: false, + i18n: true + }, + { + label: "FAQ Opener", + name: "opener", + widget: "string", + required: false, + i18n: true + }, + { + label: "FAQ Intro", + name: "intro", + widget: "text", + required: false, + i18n: true + }, + { + label: "FAQ 'All FAQ' Url", + name: "url", + widget: "string", + required: false, + i18n: true + }, + { + label: "FAQ groups", + name: "faqgroups", + widget: list, + i18n: true, + required: false, + fields: + [ + { label: "heading", name: "heading", widget: "string", required: false, i18n: true }, + { + label: "FAQs", + name: "faqs", + widget: list, + i18n: true, + required: false, + fields: + [ + { + label: "Title", + name: "title", + widget: "string", + required: false, + i18n: true, + }, + { + label: "Description", + name: "description", + widget: "markdown", + required: false, + i18n: true, + }, + ], + } + ] + } + ] + } ###################################### # SECTION: Contribute