From 6bda1efffca76c28a4b497a888145c2810c16cba Mon Sep 17 00:00:00 2001 From: "Adrienne L. Travis" Date: Wed, 18 Oct 2023 16:30:27 -0700 Subject: [PATCH] feat(#2): adding basic fields for global content --- .../164558fd-6662-415b-86d8-bfc72bbbddc7.yaml | 1 + ...-64ef4e87-922f-4416-a082-0a897b542e90.yaml | 48 ++++++++++++ ...-be29ccc6-1ed1-4c65-a912-f8fdc0c4415d.yaml | 48 ++++++++++++ ...-a593ad16-4e29-4efe-ae8d-2b23f55af1ce.yaml | 23 ++++++ ...-4ef510b3-2272-43aa-b249-c7feb612f002.yaml | 16 ++++ ...-55794833-ac2b-4dfd-b0f4-3fd5a10b978a.yaml | 75 +++++++++++++++++++ config/project/project.yaml | 10 ++- 7 files changed, 220 insertions(+), 1 deletion(-) create mode 100644 config/project/fieldGroups/164558fd-6662-415b-86d8-bfc72bbbddc7.yaml create mode 100644 config/project/fields/assetLogoMain--64ef4e87-922f-4416-a082-0a897b542e90.yaml create mode 100644 config/project/fields/assetLogoSecondary--be29ccc6-1ed1-4c65-a912-f8fdc0c4415d.yaml create mode 100644 config/project/fields/fieldSummary--a593ad16-4e29-4efe-ae8d-2b23f55af1ce.yaml create mode 100644 config/project/fields/matrixSocialMedia--4ef510b3-2272-43aa-b249-c7feb612f002.yaml create mode 100644 config/project/matrixBlockTypes/blockAccount--55794833-ac2b-4dfd-b0f4-3fd5a10b978a.yaml diff --git a/config/project/fieldGroups/164558fd-6662-415b-86d8-bfc72bbbddc7.yaml b/config/project/fieldGroups/164558fd-6662-415b-86d8-bfc72bbbddc7.yaml new file mode 100644 index 0000000..a153ea1 --- /dev/null +++ b/config/project/fieldGroups/164558fd-6662-415b-86d8-bfc72bbbddc7.yaml @@ -0,0 +1 @@ +name: Global diff --git a/config/project/fields/assetLogoMain--64ef4e87-922f-4416-a082-0a897b542e90.yaml b/config/project/fields/assetLogoMain--64ef4e87-922f-4416-a082-0a897b542e90.yaml new file mode 100644 index 0000000..9037acb --- /dev/null +++ b/config/project/fields/assetLogoMain--64ef4e87-922f-4416-a082-0a897b542e90.yaml @@ -0,0 +1,48 @@ +columnSuffix: null +contentColumnType: string +fieldGroup: 164558fd-6662-415b-86d8-bfc72bbbddc7 # Global +handle: assetLogoMain +instructions: null +name: 'Main Logo' +searchable: false +settings: + allowSelfRelations: false + allowSubfolders: true + allowUploads: true + allowedKinds: + - image + branchLimit: null + defaultUploadLocationSource: 'volume:2c79ab96-cdb4-4f4d-b481-9137d17ee4d8' # Image Files + defaultUploadLocationSubpath: branding + localizeRelations: false + maintainHierarchy: false + maxRelations: 1 + minRelations: 1 + previewMode: full + restrictFiles: true + restrictLocation: true + restrictedDefaultUploadSubpath: null + restrictedLocationSource: 'volume:2c79ab96-cdb4-4f4d-b481-9137d17ee4d8' # Image Files + restrictedLocationSubpath: branding + selectionCondition: + __assoc__: + - + - elementType + - craft\elements\Asset + - + - fieldContext + - global + - + - class + - craft\elements\conditions\assets\AssetCondition + selectionLabel: null + showSiteMenu: true + showUnpermittedFiles: false + showUnpermittedVolumes: false + sources: '*' + targetSiteId: null + validateRelatedElements: false + viewMode: large +translationKeyFormat: null +translationMethod: site +type: craft\fields\Assets diff --git a/config/project/fields/assetLogoSecondary--be29ccc6-1ed1-4c65-a912-f8fdc0c4415d.yaml b/config/project/fields/assetLogoSecondary--be29ccc6-1ed1-4c65-a912-f8fdc0c4415d.yaml new file mode 100644 index 0000000..262263c --- /dev/null +++ b/config/project/fields/assetLogoSecondary--be29ccc6-1ed1-4c65-a912-f8fdc0c4415d.yaml @@ -0,0 +1,48 @@ +columnSuffix: null +contentColumnType: string +fieldGroup: 164558fd-6662-415b-86d8-bfc72bbbddc7 # Global +handle: assetLogoSecondary +instructions: null +name: 'Secondary Logo' +searchable: false +settings: + allowSelfRelations: false + allowSubfolders: true + allowUploads: true + allowedKinds: + - image + branchLimit: null + defaultUploadLocationSource: 'volume:2c79ab96-cdb4-4f4d-b481-9137d17ee4d8' # Image Files + defaultUploadLocationSubpath: branding + localizeRelations: false + maintainHierarchy: false + maxRelations: 1 + minRelations: 0 + previewMode: full + restrictFiles: true + restrictLocation: true + restrictedDefaultUploadSubpath: null + restrictedLocationSource: 'volume:2c79ab96-cdb4-4f4d-b481-9137d17ee4d8' # Image Files + restrictedLocationSubpath: branding + selectionCondition: + __assoc__: + - + - elementType + - craft\elements\Asset + - + - fieldContext + - global + - + - class + - craft\elements\conditions\assets\AssetCondition + selectionLabel: null + showSiteMenu: true + showUnpermittedFiles: false + showUnpermittedVolumes: false + sources: '*' + targetSiteId: null + validateRelatedElements: false + viewMode: large +translationKeyFormat: null +translationMethod: site +type: craft\fields\Assets diff --git a/config/project/fields/fieldSummary--a593ad16-4e29-4efe-ae8d-2b23f55af1ce.yaml b/config/project/fields/fieldSummary--a593ad16-4e29-4efe-ae8d-2b23f55af1ce.yaml new file mode 100644 index 0000000..8074b84 --- /dev/null +++ b/config/project/fields/fieldSummary--a593ad16-4e29-4efe-ae8d-2b23f55af1ce.yaml @@ -0,0 +1,23 @@ +columnSuffix: haeonvqk +contentColumnType: text +fieldGroup: 794caefa-4c9a-4eca-8f28-00d0f726f290 # Common +handle: fieldSummary +instructions: null +name: Summary +searchable: false +settings: + availableTransforms: '' + availableVolumes: '' + ckeConfig: 1a4c79b2-ddf3-4b72-95e7-852ab2ff7a8e # Simple + columnType: text + defaultTransform: null + enableSourceEditingForNonAdmins: false + purifierConfig: null + purifyHtml: true + showUnpermittedFiles: false + showUnpermittedVolumes: false + showWordCount: true + wordLimit: null +translationKeyFormat: null +translationMethod: none +type: craft\ckeditor\Field diff --git a/config/project/fields/matrixSocialMedia--4ef510b3-2272-43aa-b249-c7feb612f002.yaml b/config/project/fields/matrixSocialMedia--4ef510b3-2272-43aa-b249-c7feb612f002.yaml new file mode 100644 index 0000000..69b29a3 --- /dev/null +++ b/config/project/fields/matrixSocialMedia--4ef510b3-2272-43aa-b249-c7feb612f002.yaml @@ -0,0 +1,16 @@ +columnSuffix: null +contentColumnType: string +fieldGroup: 164558fd-6662-415b-86d8-bfc72bbbddc7 # Global +handle: matrixSocialMedia +instructions: null +name: 'Social Media Links' +searchable: false +settings: + contentTable: '{{%matrixcontent_matrixsocialmedia}}' + maxBlocks: null + minBlocks: null + propagationKeyFormat: null + propagationMethod: all +translationKeyFormat: null +translationMethod: site +type: craft\fields\Matrix diff --git a/config/project/matrixBlockTypes/blockAccount--55794833-ac2b-4dfd-b0f4-3fd5a10b978a.yaml b/config/project/matrixBlockTypes/blockAccount--55794833-ac2b-4dfd-b0f4-3fd5a10b978a.yaml new file mode 100644 index 0000000..2cb98ca --- /dev/null +++ b/config/project/matrixBlockTypes/blockAccount--55794833-ac2b-4dfd-b0f4-3fd5a10b978a.yaml @@ -0,0 +1,75 @@ +field: 4ef510b3-2272-43aa-b249-c7feb612f002 # Social Media Links +fieldLayouts: + ae6cbfcf-2f74-4137-8655-f4458bce43f6: + tabs: + - + elementCondition: null + elements: + - + elementCondition: null + fieldUid: 12982b04-bf9b-48e4-8d73-c1344204d9b7 # Short Name + instructions: null + label: null + required: true + tip: null + type: craft\fieldlayoutelements\CustomField + uid: 356552af-d4b4-4c5c-a3b1-2554164703c4 + userCondition: null + warning: null + width: 100 + - + elementCondition: null + fieldUid: 347fc6c8-ef47-4e04-bcea-a2c37cd0debc # Account URL + instructions: null + label: null + required: true + tip: null + type: craft\fieldlayoutelements\CustomField + uid: 9bbada30-6880-4567-b6ec-d0e6efdcd281 + userCondition: null + warning: null + width: 100 + name: Content + uid: 4e61b720-0c62-4cb2-99c7-a2ebfd12e623 + userCondition: null +fields: + 347fc6c8-ef47-4e04-bcea-a2c37cd0debc: # Account URL + columnSuffix: jpgkzzhe + contentColumnType: string(1000) + fieldGroup: null + handle: itemLink + instructions: null + name: 'Account URL' + searchable: false + settings: + maxLength: 1000 + types: + - url + - tel + - email + translationKeyFormat: null + translationMethod: none + type: craft\fields\Url + 12982b04-bf9b-48e4-8d73-c1344204d9b7: # Short Name + columnSuffix: wkzoplka + contentColumnType: string(120) + fieldGroup: null + handle: itemTitle + instructions: 'This should be a one-word key that will be used as the name of the icon' + name: 'Short Name' + searchable: false + settings: + byteLimit: null + charLimit: 30 + code: true + columnType: null + initialRows: 4 + multiline: false + placeholder: null + uiMode: normal + translationKeyFormat: null + translationMethod: none + type: craft\fields\PlainText +handle: blockAccount +name: 'Social Media Account' +sortOrder: 1 diff --git a/config/project/project.yaml b/config/project/project.yaml index a900942..a838d0a 100644 --- a/config/project/project.yaml +++ b/config/project/project.yaml @@ -1,4 +1,4 @@ -dateModified: 1697494114 +dateModified: 1697671790 email: fromEmail: admin@rijam.ml1.net fromName: 'GigaDB CMS' @@ -27,9 +27,17 @@ meta: __names__: 1a4c79b2-ddf3-4b72-95e7-852ab2ff7a8e: Simple # Simple 2c79ab96-cdb4-4f4d-b481-9137d17ee4d8: 'Image Files' # Image Files + 4ef510b3-2272-43aa-b249-c7feb612f002: 'Social Media Links' # Social Media Links 9d3df531-4efc-403f-9ce6-26de65b4c56e: 'GigaDB CMS' # GigaDB CMS + 64ef4e87-922f-4416-a082-0a897b542e90: 'Main Logo' # Main Logo + 347fc6c8-ef47-4e04-bcea-a2c37cd0debc: 'Account URL' # Account URL 794caefa-4c9a-4eca-8f28-00d0f726f290: Common # Common + 12982b04-bf9b-48e4-8d73-c1344204d9b7: 'Short Name' # Short Name + 164558fd-6662-415b-86d8-bfc72bbbddc7: Global # Global + 55794833-ac2b-4dfd-b0f4-3fd5a10b978a: 'Social Media Account' # Social Media Account + a593ad16-4e29-4efe-ae8d-2b23f55af1ce: Summary # Summary a546404d-d266-44e4-8043-45f37c896067: 'GigaDB CMS' # GigaDB CMS + be29ccc6-1ed1-4c65-a912-f8fdc0c4415d: 'Secondary Logo' # Secondary Logo plugins: aws-s3: edition: standard