forked from gigascience/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gigascience#2): adding basic fields for global content
- Loading branch information
Showing
7 changed files
with
220 additions
and
1 deletion.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
config/project/fieldGroups/164558fd-6662-415b-86d8-bfc72bbbddc7.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
name: Global |
48 changes: 48 additions & 0 deletions
48
config/project/fields/assetLogoMain--64ef4e87-922f-4416-a082-0a897b542e90.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
48 changes: 48 additions & 0 deletions
48
config/project/fields/assetLogoSecondary--be29ccc6-1ed1-4c65-a912-f8fdc0c4415d.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
23 changes: 23 additions & 0 deletions
23
config/project/fields/fieldSummary--a593ad16-4e29-4efe-ae8d-2b23f55af1ce.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
16 changes: 16 additions & 0 deletions
16
config/project/fields/matrixSocialMedia--4ef510b3-2272-43aa-b249-c7feb612f002.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
75 changes: 75 additions & 0 deletions
75
config/project/matrixBlockTypes/blockAccount--55794833-ac2b-4dfd-b0f4-3fd5a10b978a.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dateModified: 1697494114 | ||
dateModified: 1697671790 | ||
email: | ||
fromEmail: [email protected] | ||
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 | ||
|