From afda02cb3f545af0b2a05ab9e8a69fbd0f955798 Mon Sep 17 00:00:00 2001 From: "Adrienne L. Travis" Date: Sat, 21 Oct 2023 02:02:14 -0700 Subject: [PATCH] feat(#5): adding FAQ channel --- ...-1a381f33-3064-467d-bdb8-921e4b5aa28d.yaml | 70 +++++++++++++++++++ config/project/project.yaml | 4 +- ...-396db8a3-6f7c-4e8e-b3d0-d3a3838c454f.yaml | 12 ++++ 3 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 config/project/entryTypes/default--1a381f33-3064-467d-bdb8-921e4b5aa28d.yaml create mode 100644 config/project/sections/sectionFAQItems--396db8a3-6f7c-4e8e-b3d0-d3a3838c454f.yaml diff --git a/config/project/entryTypes/default--1a381f33-3064-467d-bdb8-921e4b5aa28d.yaml b/config/project/entryTypes/default--1a381f33-3064-467d-bdb8-921e4b5aa28d.yaml new file mode 100644 index 0000000..33dbf4c --- /dev/null +++ b/config/project/entryTypes/default--1a381f33-3064-467d-bdb8-921e4b5aa28d.yaml @@ -0,0 +1,70 @@ +fieldLayouts: + 7cad5b36-6855-4f82-9f4b-dd6949640a78: + tabs: + - + elementCondition: null + elements: + - + autocapitalize: true + autocomplete: false + autocorrect: true + class: null + disabled: false + elementCondition: null + id: null + instructions: null + label: null + max: null + min: null + name: null + orientation: null + placeholder: null + readonly: false + requirable: false + size: null + step: null + tip: null + title: null + type: craft\fieldlayoutelements\entries\EntryTitleField + uid: 942a293b-135c-4d59-92c6-085bbcbe32e7 + userCondition: null + warning: null + width: 100 + - + elementCondition: null + fieldUid: ff5ba20a-aca5-40b0-acf9-934ca6f67de1 # Question + instructions: null + label: null + required: true + tip: null + type: craft\fieldlayoutelements\CustomField + uid: 55063dea-f50f-47ae-9587-ec4c79e5ba28 + userCondition: null + warning: null + width: 100 + - + elementCondition: null + fieldUid: 45f2b326-f406-4bf0-99b2-dd6c18ed02af # Answer + instructions: null + label: null + required: true + tip: null + type: craft\fieldlayoutelements\CustomField + uid: 2d4a5492-eddd-449e-b6ab-7d1aa2d4c341 + userCondition: null + warning: null + width: 100 + name: Content + uid: 55eac50d-4de4-4d46-a035-cda7931a9e2f + userCondition: null +handle: default +hasTitleField: false +name: Default +section: 396db8a3-6f7c-4e8e-b3d0-d3a3838c454f # FAQ Items +showStatusField: true +slugTranslationKeyFormat: null +slugTranslationMethod: site +sortOrder: 1 +titleFormat: '{{ object.fieldFAQQuestion|striptags|slice(0,70) }}… ' +titleTranslationKeyFormat: null +titleTranslationMethod: site diff --git a/config/project/project.yaml b/config/project/project.yaml index 8ca5607..84a5a38 100644 --- a/config/project/project.yaml +++ b/config/project/project.yaml @@ -1,4 +1,4 @@ -dateModified: 1697876862 +dateModified: 1697878800 email: fromEmail: admin@rijam.ml1.net fromName: 'GigaDB CMS' @@ -27,6 +27,7 @@ meta: __names__: 0df91118-e81f-4965-bd98-d63f4e14cd81: Default # Default 1a4c79b2-ddf3-4b72-95e7-852ab2ff7a8e: 'Basic Text' # Basic Text + 1a381f33-3064-467d-bdb8-921e4b5aa28d: Default # Default 2c79ab96-cdb4-4f4d-b481-9137d17ee4d8: 'Image Files' # Image Files 4ef510b3-2272-43aa-b249-c7feb612f002: 'Social Media Links' # Social Media Links 5c48af56-7d08-49d7-860a-cdbc27e3ec9a: 'Global Content' # Global Content @@ -41,6 +42,7 @@ meta: 079ba75a-85f6-40a0-a4e2-f35c624860b4: 'Team Members' # Team Members 79f4cf93-dbd0-4645-a4e9-69aec5866904: 'Global Content' # Global Content 347fc6c8-ef47-4e04-bcea-a2c37cd0debc: 'Account URL' # Account URL + 396db8a3-6f7c-4e8e-b3d0-d3a3838c454f: 'FAQ Items' # FAQ Items 794caefa-4c9a-4eca-8f28-00d0f726f290: Common # Common 12982b04-bf9b-48e4-8d73-c1344204d9b7: 'Short Name' # Short Name 164558fd-6662-415b-86d8-bfc72bbbddc7: Global # Global diff --git a/config/project/sections/sectionFAQItems--396db8a3-6f7c-4e8e-b3d0-d3a3838c454f.yaml b/config/project/sections/sectionFAQItems--396db8a3-6f7c-4e8e-b3d0-d3a3838c454f.yaml new file mode 100644 index 0000000..e805ea9 --- /dev/null +++ b/config/project/sections/sectionFAQItems--396db8a3-6f7c-4e8e-b3d0-d3a3838c454f.yaml @@ -0,0 +1,12 @@ +defaultPlacement: end +enableVersioning: true +handle: sectionFAQItems +name: 'FAQ Items' +propagationMethod: all +siteSettings: + a546404d-d266-44e4-8043-45f37c896067: # GigaDB CMS + enabledByDefault: true + hasUrls: true + template: faq-items/_entry + uriFormat: 'faq/{slug}' +type: channel