Skip to content

Commit

Permalink
feat(gigascience#2): adding basic fields for global content
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienne committed Oct 18, 2023
1 parent e3ab421 commit 6bda1ef
Show file tree
Hide file tree
Showing 7 changed files with 220 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
name: Global
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
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
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
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
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
- 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
10 changes: 9 additions & 1 deletion config/project/project.yaml
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'
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6bda1ef

Please sign in to comment.