Skip to content

Commit

Permalink
Add "go_linkbox" paragraph type to go_paragraphs
Browse files Browse the repository at this point in the history
Fields:
-title
-description
-link
  • Loading branch information
kasperbirch1 committed Jan 14, 2025
1 parent 90dacbe commit 4d5e055
Show file tree
Hide file tree
Showing 10 changed files with 235 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
uuid: 4deccfd8-07e3-4316-8218-ecc3a8c6e3b0
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.go_linkbox.field_go_description
- field.field.paragraph.go_linkbox.field_go_link
- field.field.paragraph.go_linkbox.field_title
- paragraphs.paragraphs_type.go_linkbox
module:
- link
id: paragraph.go_linkbox.default
targetEntityType: paragraph
bundle: go_linkbox
mode: default
content:
field_go_description:
type: string_textarea
weight: 2
region: content
settings:
rows: 3
placeholder: ''
third_party_settings: { }
field_go_link:
type: link_default
weight: 1
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_title:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
uuid: bf31bf33-b5e3-4f18-8906-c2a0e083bef4
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.go_linkbox.field_go_description
- field.field.paragraph.go_linkbox.field_go_link
- field.field.paragraph.go_linkbox.field_title
- paragraphs.paragraphs_type.go_linkbox
module:
- link
id: paragraph.go_linkbox.default
targetEntityType: paragraph
bundle: go_linkbox
mode: default
content:
field_go_description:
type: basic_string
label: above
settings: { }
third_party_settings: { }
weight: 2
region: content
field_go_link:
type: link
label: above
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
weight: 1
region: content
field_title:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
hidden:
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
uuid: 0e4eb567-adf2-4b52-b1df-fe7bb5fc7bd7
langcode: en
status: true
dependencies:
config:
- core.entity_view_mode.paragraph.preview
- field.field.paragraph.go_linkbox.field_go_description
- field.field.paragraph.go_linkbox.field_go_link
- field.field.paragraph.go_linkbox.field_title
- paragraphs.paragraphs_type.go_linkbox
id: paragraph.go_linkbox.preview
targetEntityType: paragraph
bundle: go_linkbox
mode: preview
content:
field_title:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 0
region: content
hidden:
field_go_description: true
field_go_link: true
search_api_excerpt: true
5 changes: 5 additions & 0 deletions config/sync/field.field.node.go_article.field_paragraphs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- field.storage.node.field_paragraphs
- node.type.go_article
- paragraphs.paragraphs_type.go_linkbox
- paragraphs.paragraphs_type.go_video
module:
- entity_reference_revisions
Expand All @@ -23,6 +24,7 @@ settings:
handler_settings:
target_bundles:
go_video: go_video
go_linkbox: go_linkbox
negate: 0
target_bundles_drag_drop:
accordion:
Expand Down Expand Up @@ -58,6 +60,9 @@ settings:
filtered_event_list:
weight: 41
enabled: false
go_linkbox:
weight: 43
enabled: true
go_video:
weight: 42
enabled: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 532e315b-8a53-484c-a0b3-215e9d1386e7
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_go_description
- paragraphs.paragraphs_type.go_linkbox
id: paragraph.go_linkbox.field_go_description
field_name: field_go_description
entity_type: paragraph
bundle: go_linkbox
label: Description
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long
23 changes: 23 additions & 0 deletions config/sync/field.field.paragraph.go_linkbox.field_go_link.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 91381c4d-093f-49a7-92e5-5fb2de7ed018
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_go_link
- paragraphs.paragraphs_type.go_linkbox
module:
- link
id: paragraph.go_linkbox.field_go_link
field_name: field_go_link
entity_type: paragraph
bundle: go_linkbox
label: LInk
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings:
title: 0
link_type: 17
field_type: link
19 changes: 19 additions & 0 deletions config/sync/field.field.paragraph.go_linkbox.field_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 1e709fbe-90b2-49a1-b910-352b250e5808
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.field_title
- paragraphs.paragraphs_type.go_linkbox
id: paragraph.go_linkbox.field_title
field_name: field_title
entity_type: paragraph
bundle: go_linkbox
label: Title
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
19 changes: 19 additions & 0 deletions config/sync/field.storage.paragraph.field_go_description.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: e0c33d02-f017-4931-8edb-a6a779218168
langcode: en
status: true
dependencies:
module:
- paragraphs
id: paragraph.field_go_description
field_name: field_go_description
entity_type: paragraph
type: string_long
settings:
case_sensitive: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
19 changes: 19 additions & 0 deletions config/sync/field.storage.paragraph.field_go_link.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 7cd8565b-a09b-4ff5-9264-a681efc16938
langcode: en
status: true
dependencies:
module:
- link
- paragraphs
id: paragraph.field_go_link
field_name: field_go_link
entity_type: paragraph
type: link
settings: { }
module: link
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
16 changes: 16 additions & 0 deletions config/sync/paragraphs.paragraphs_type.go_linkbox.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
uuid: 765c6320-e286-4c53-bf33-57bbd5ff69e4
langcode: en
status: true
dependencies:
module:
- paragraphs_ee
third_party_settings:
paragraphs_ee:
paragraphs_categories:
go_paragraphs: go_paragraphs
id: go_linkbox
label: 'GO Linkbox'
icon_uuid: null
icon_default: null
description: ''
behavior_plugins: { }

0 comments on commit 4d5e055

Please sign in to comment.