Skip to content

Commit

Permalink
Merge pull request #2030 from danskernesdigitalebibliotek/go-linkbox-v2
Browse files Browse the repository at this point in the history
Go linkbox v2
  • Loading branch information
kasperbirch1 authored Feb 5, 2025
2 parents 35bdd8e + 086b47e commit b96fb32
Show file tree
Hide file tree
Showing 26 changed files with 492 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.go_category.field_category_menu_color
- field.field.node.go_category.field_category_menu_image
- field.field.node.go_category.field_category_menu_sound
- field.field.node.go_category.field_category_menu_title
- field.field.node.go_category.field_go_color
- field.field.node.go_category.field_paragraphs
- field.field.node.go_category.field_publication_date
- node.type.go_category
module:
- color_field
- datetime
- field_group
- media_library
Expand Down Expand Up @@ -64,13 +63,6 @@ targetEntityType: node
bundle: go_category
mode: default
content:
field_category_menu_color:
type: color_field_widget_box
weight: 28
region: content
settings:
default_colors: '#ffd2f0,#dcc3ff,#ffdcb9,#bee6fa'
third_party_settings: { }
field_category_menu_image:
type: media_library_widget
weight: 29
Expand All @@ -93,6 +85,12 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
field_go_color:
type: options_select
weight: 31
region: content
settings: { }
third_party_settings: { }
field_paragraphs:
type: paragraphs
weight: 1
Expand Down
44 changes: 44 additions & 0 deletions config/sync/core.entity_form_display.paragraph.go_link.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
uuid: aea77006-ef8e-4082-be55-079008cf2399
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.go_link.field_aria_label
- field.field.paragraph.go_link.field_link
- field.field.paragraph.go_link.field_target_blank
- paragraphs.paragraphs_type.go_link
module:
- linkit
id: paragraph.go_link.default
targetEntityType: paragraph
bundle: go_link
mode: default
content:
field_aria_label:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_link:
type: linkit
weight: 0
region: content
settings:
placeholder_url: ''
placeholder_title: ''
linkit_profile: default
linkit_auto_link_text: false
third_party_settings: { }
field_target_blank:
type: boolean_checkbox
weight: 2
region: content
settings:
display_label: true
third_party_settings: { }
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ dependencies:
- field.field.paragraph.go_linkbox.field_title
- paragraphs.paragraphs_type.go_linkbox
module:
- color_field
- link
- media_library
- paragraphs
- paragraphs_ee
- paragraphs_features
id: paragraph.go_linkbox.default
targetEntityType: paragraph
bundle: go_linkbox
mode: default
content:
field_go_color:
type: color_field_widget_box
weight: 1
type: options_select
weight: 4
region: content
settings:
default_colors: '#ffd2f0,#dcc3ff,#ffdcb9,#bee6fa,#ff73d7,#9b6eff,#ff9100,#32b4ff,#642850,#6e55aa,#7d460f,#195a7d'
settings: { }
third_party_settings: { }
field_go_description:
type: string_textarea
weight: 4
weight: 2
region: content
settings:
rows: 3
Expand All @@ -41,16 +41,39 @@ content:
media_types: { }
third_party_settings: { }
field_go_link:
type: link_default
type: paragraphs
weight: 3
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
title: Paragraph
title_plural: Paragraphs
edit_mode: open
closed_mode: summary
autocollapse: none
closed_mode_threshold: 0
add_mode: dropdown
form_display_mode: default
default_paragraph_type: go_link
features:
add_above: '0'
collapse_edit_all: '0'
convert: '0'
duplicate: '0'
third_party_settings:
paragraphs_features:
add_in_between: false
add_in_between_link_count: 3
delete_confirmation: false
show_drag_and_drop: false
show_collapse_all: false
paragraphs_ee:
paragraphs_ee:
dialog_off_canvas: false
dialog_style: tiles
drag_drop: false
field_title:
type: string_textfield
weight: 2
weight: 1
region: content
settings:
size: 60
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.card
- field.field.node.go_category.field_category_menu_color
- field.field.node.go_category.field_category_menu_image
- field.field.node.go_category.field_category_menu_sound
- field.field.node.go_category.field_category_menu_title
- field.field.node.go_category.field_go_color
- field.field.node.go_category.field_paragraphs
- field.field.node.go_category.field_publication_date
- node.type.go_category
Expand All @@ -24,10 +24,10 @@ content:
weight: 100
region: content
hidden:
field_category_menu_color: true
field_category_menu_image: true
field_category_menu_sound: true
field_category_menu_title: true
field_go_color: true
field_paragraphs: true
field_publication_date: true
langcode: true
Expand Down
20 changes: 9 additions & 11 deletions config/sync/core.entity_view_display.node.go_category.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,22 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.go_category.field_category_menu_color
- field.field.node.go_category.field_category_menu_image
- field.field.node.go_category.field_category_menu_sound
- field.field.node.go_category.field_category_menu_title
- field.field.node.go_category.field_go_color
- field.field.node.go_category.field_paragraphs
- field.field.node.go_category.field_publication_date
- node.type.go_category
module:
- color_field
- datetime
- options
- user
id: node.go_category.default
targetEntityType: node
bundle: go_category
mode: default
content:
field_category_menu_color:
type: color_field_formatter_text
label: above
settings:
format: hex
opacity: true
third_party_settings: { }
weight: 118
region: content
field_category_menu_image:
type: entity_reference_entity_view
label: above
Expand All @@ -54,6 +45,13 @@ content:
third_party_settings: { }
weight: 115
region: content
field_go_color:
type: list_default
label: above
settings: { }
third_party_settings: { }
weight: 118
region: content
field_publication_date:
type: datetime_default
label: above
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.full
- field.field.node.go_category.field_category_menu_color
- field.field.node.go_category.field_category_menu_image
- field.field.node.go_category.field_category_menu_sound
- field.field.node.go_category.field_category_menu_title
- field.field.node.go_category.field_go_color
- field.field.node.go_category.field_paragraphs
- field.field.node.go_category.field_publication_date
- node.type.go_category
Expand All @@ -34,10 +34,10 @@ content:
weight: 100
region: content
hidden:
field_category_menu_color: true
field_category_menu_image: true
field_category_menu_sound: true
field_category_menu_title: true
field_go_color: true
field_publication_date: true
langcode: true
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.list_teaser
- field.field.node.go_category.field_category_menu_color
- field.field.node.go_category.field_category_menu_image
- field.field.node.go_category.field_category_menu_sound
- field.field.node.go_category.field_category_menu_title
- field.field.node.go_category.field_go_color
- field.field.node.go_category.field_paragraphs
- field.field.node.go_category.field_publication_date
- node.type.go_category
Expand All @@ -24,10 +24,10 @@ content:
weight: 100
region: content
hidden:
field_category_menu_color: true
field_category_menu_image: true
field_category_menu_sound: true
field_category_menu_title: true
field_go_color: true
field_paragraphs: true
field_publication_date: true
langcode: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.nav_spot
- field.field.node.go_category.field_category_menu_color
- field.field.node.go_category.field_category_menu_image
- field.field.node.go_category.field_category_menu_sound
- field.field.node.go_category.field_category_menu_title
- field.field.node.go_category.field_go_color
- field.field.node.go_category.field_paragraphs
- field.field.node.go_category.field_publication_date
- node.type.go_category
Expand All @@ -24,10 +24,10 @@ content:
weight: 100
region: content
hidden:
field_category_menu_color: true
field_category_menu_image: true
field_category_menu_sound: true
field_category_menu_title: true
field_go_color: true
field_paragraphs: true
field_publication_date: true
langcode: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.go_category.field_category_menu_color
- field.field.node.go_category.field_category_menu_image
- field.field.node.go_category.field_category_menu_sound
- field.field.node.go_category.field_category_menu_title
- field.field.node.go_category.field_go_color
- field.field.node.go_category.field_paragraphs
- field.field.node.go_category.field_publication_date
- node.type.go_category
Expand All @@ -24,10 +24,10 @@ content:
weight: 100
region: content
hidden:
field_category_menu_color: true
field_category_menu_image: true
field_category_menu_sound: true
field_category_menu_title: true
field_go_color: true
field_paragraphs: true
field_publication_date: true
langcode: true
Expand Down
48 changes: 48 additions & 0 deletions config/sync/core.entity_view_display.paragraph.go_link.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
uuid: 149c4c93-19c3-422b-af2f-8d70e8c249b9
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.go_link.field_aria_label
- field.field.paragraph.go_link.field_link
- field.field.paragraph.go_link.field_target_blank
- paragraphs.paragraphs_type.go_link
module:
- link
id: paragraph.go_link.default
targetEntityType: paragraph
bundle: go_link
mode: default
content:
field_aria_label:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 1
region: content
field_link:
type: link
label: hidden
settings:
trim_length: null
url_only: false
url_plain: false
rel: '0'
target: '0'
third_party_settings: { }
weight: 0
region: content
field_target_blank:
type: boolean
label: above
settings:
format: default
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 2
region: content
hidden:
search_api_excerpt: true
Loading

0 comments on commit b96fb32

Please sign in to comment.