From 7140942cabcf63ffe3ca9699ddf145fbde4a3d7c Mon Sep 17 00:00:00 2001 From: Andreas Nielsen Date: Mon, 13 Jan 2025 15:12:52 +0100 Subject: [PATCH 1/5] Added GraphQL handling for the "color_field_type" field provided by the contrib module "color_field" module. --- .../custom/dpl_graphql/dpl_graphql.info.yml | 1 + .../GraphQLCompose/FieldType/ColorItem.php | 36 +++++++++++++++ .../GraphQLCompose/SchemaType/ColorType.php | 44 +++++++++++++++++++ 3 files changed, 81 insertions(+) create mode 100644 web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/FieldType/ColorItem.php create mode 100644 web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/SchemaType/ColorType.php diff --git a/web/modules/custom/dpl_graphql/dpl_graphql.info.yml b/web/modules/custom/dpl_graphql/dpl_graphql.info.yml index 67ff5385b..2e0e5cfb1 100644 --- a/web/modules/custom/dpl_graphql/dpl_graphql.info.yml +++ b/web/modules/custom/dpl_graphql/dpl_graphql.info.yml @@ -4,6 +4,7 @@ description: 'Module used for handling graphql functionality.' package: DPL core_version_requirement: ^10 || ^11 dependencies: + - color_field:color_field - graphql:graphql - graphql_compose:graphql_compose - dpl_unilogin:dpl_unilogin diff --git a/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/FieldType/ColorItem.php b/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/FieldType/ColorItem.php new file mode 100644 index 000000000..c53ecee2d --- /dev/null +++ b/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/FieldType/ColorItem.php @@ -0,0 +1,36 @@ + $item->color, + 'opacity' => $item->opacity + ]; + } + +} diff --git a/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/SchemaType/ColorType.php b/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/SchemaType/ColorType.php new file mode 100644 index 000000000..dc4012f32 --- /dev/null +++ b/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/SchemaType/ColorType.php @@ -0,0 +1,44 @@ + $this->getPluginId(), + 'description' => (string) $this->t('A color field.'), + 'fields' => fn() => [ + 'color' => [ + 'type' => Type::string(), + 'description' => (string) $this->t('The color value in #HEX format.'), + ], + 'opacity' => [ + 'type' => Type::float(), + 'description' => (string) $this->t('The opacity value.'), + ], + ], + ]); + + return $types; + } + +} From 7396d9cc8e549abe02c6f45301bb43a15bbf8b59 Mon Sep 17 00:00:00 2001 From: Andreas Nielsen Date: Mon, 13 Jan 2025 15:15:24 +0100 Subject: [PATCH 2/5] 1. Enabled the "Audio" media type and configured it. 2. Added new content type "go_category_page". 3. Enabled "Audio" media type and "go_category_page" content type in graphql_compose configuration. --- ...override.node.go_category_page.promote.yml | 22 +++ ...ntity_form_display.media.audio.default.yml | 69 +++++++ ...form_display.media.audio.media_library.yml | 30 +++ ..._display.node.go_category_page.default.yml | 186 ++++++++++++++++++ ...ntity_view_display.media.audio.default.yml | 32 +++ ...view_display.media.audio.media_library.yml | 34 ++++ ...iew_display.node.go_category_page.card.yml | 34 ++++ ..._display.node.go_category_page.default.yml | 74 +++++++ ...iew_display.node.go_category_page.full.yml | 43 ++++ ...play.node.go_category_page.list_teaser.yml | 34 ++++ ...display.node.go_category_page.nav_spot.yml | 34 ++++ ...w_display.node.go_category_page.teaser.yml | 34 ++++ ...eld.media.audio.field_media_audio_file.yml | 27 +++ ...ategory_page.field_category_menu_color.yml | 22 +++ ...ategory_page.field_category_menu_image.yml | 29 +++ ...ategory_page.field_category_menu_sound.yml | 29 +++ ...ategory_page.field_category_menu_title.yml | 19 ++ ...node.go_category_page.field_paragraphs.yml | 118 +++++++++++ ...o_category_page.field_publication_date.yml | 24 +++ ...d.storage.media.field_media_audio_file.yml | 23 +++ ...storage.node.field_category_menu_color.yml | 20 ++ ...storage.node.field_category_menu_image.yml | 20 ++ ...storage.node.field_category_menu_sound.yml | 20 ++ ...storage.node.field_category_menu_title.yml | 21 ++ config/sync/graphql_compose.settings.yml | 21 ++ .../language.content_settings.media.audio.yml | 11 ++ ...content_settings.node.go_category_page.yml | 11 ++ config/sync/media.type.audio.yml | 29 +++ config/sync/node.type.go_category_page.yml | 34 ++++ ...settings.default.node.go_category_page.yml | 4 + 30 files changed, 1108 insertions(+) create mode 100644 config/sync/core.base_field_override.node.go_category_page.promote.yml create mode 100644 config/sync/core.entity_form_display.media.audio.default.yml create mode 100644 config/sync/core.entity_form_display.media.audio.media_library.yml create mode 100644 config/sync/core.entity_form_display.node.go_category_page.default.yml create mode 100644 config/sync/core.entity_view_display.media.audio.default.yml create mode 100644 config/sync/core.entity_view_display.media.audio.media_library.yml create mode 100644 config/sync/core.entity_view_display.node.go_category_page.card.yml create mode 100644 config/sync/core.entity_view_display.node.go_category_page.default.yml create mode 100644 config/sync/core.entity_view_display.node.go_category_page.full.yml create mode 100644 config/sync/core.entity_view_display.node.go_category_page.list_teaser.yml create mode 100644 config/sync/core.entity_view_display.node.go_category_page.nav_spot.yml create mode 100644 config/sync/core.entity_view_display.node.go_category_page.teaser.yml create mode 100644 config/sync/field.field.media.audio.field_media_audio_file.yml create mode 100644 config/sync/field.field.node.go_category_page.field_category_menu_color.yml create mode 100644 config/sync/field.field.node.go_category_page.field_category_menu_image.yml create mode 100644 config/sync/field.field.node.go_category_page.field_category_menu_sound.yml create mode 100644 config/sync/field.field.node.go_category_page.field_category_menu_title.yml create mode 100644 config/sync/field.field.node.go_category_page.field_paragraphs.yml create mode 100644 config/sync/field.field.node.go_category_page.field_publication_date.yml create mode 100644 config/sync/field.storage.media.field_media_audio_file.yml create mode 100644 config/sync/field.storage.node.field_category_menu_color.yml create mode 100644 config/sync/field.storage.node.field_category_menu_image.yml create mode 100644 config/sync/field.storage.node.field_category_menu_sound.yml create mode 100644 config/sync/field.storage.node.field_category_menu_title.yml create mode 100644 config/sync/language.content_settings.media.audio.yml create mode 100644 config/sync/language.content_settings.node.go_category_page.yml create mode 100644 config/sync/media.type.audio.yml create mode 100644 config/sync/node.type.go_category_page.yml create mode 100644 config/sync/simple_sitemap.bundle_settings.default.node.go_category_page.yml diff --git a/config/sync/core.base_field_override.node.go_category_page.promote.yml b/config/sync/core.base_field_override.node.go_category_page.promote.yml new file mode 100644 index 000000000..f668fd3e4 --- /dev/null +++ b/config/sync/core.base_field_override.node.go_category_page.promote.yml @@ -0,0 +1,22 @@ +uuid: 8f3c43f9-8b6f-4175-833b-02ee0ccece44 +langcode: en +status: true +dependencies: + config: + - node.type.go_category_page +id: node.go_category_page.promote +field_name: promote +entity_type: node +bundle: go_category_page +label: 'Promoted to front page' +description: '' +required: false +translatable: true +default_value: + - + value: 0 +default_value_callback: '' +settings: + on_label: 'On' + off_label: 'Off' +field_type: boolean diff --git a/config/sync/core.entity_form_display.media.audio.default.yml b/config/sync/core.entity_form_display.media.audio.default.yml new file mode 100644 index 000000000..e93bf6f3e --- /dev/null +++ b/config/sync/core.entity_form_display.media.audio.default.yml @@ -0,0 +1,69 @@ +uuid: 8ea391ef-871a-45c1-9ad7-a283a7de5fe7 +langcode: en +status: true +dependencies: + config: + - field.field.media.audio.field_media_audio_file + - media.type.audio + module: + - file + - path +id: media.audio.default +targetEntityType: media +bundle: audio +mode: default +content: + created: + type: datetime_timestamp + weight: 10 + region: content + settings: { } + third_party_settings: { } + field_media_audio_file: + type: file_generic + weight: 0 + region: content + settings: + progress_indicator: throbber + third_party_settings: { } + langcode: + type: language_select + weight: 2 + region: content + settings: + include_locked: true + third_party_settings: { } + name: + type: string_textfield + weight: -5 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + path: + type: path + weight: 30 + region: content + settings: { } + third_party_settings: { } + status: + type: boolean_checkbox + weight: 100 + region: content + settings: + display_label: true + third_party_settings: { } + uid: + type: entity_reference_autocomplete + weight: 5 + region: content + settings: + match_operator: CONTAINS + match_limit: 10 + size: 60 + placeholder: '' + third_party_settings: { } +hidden: + publish_on: true + unpublish_on: true diff --git a/config/sync/core.entity_form_display.media.audio.media_library.yml b/config/sync/core.entity_form_display.media.audio.media_library.yml new file mode 100644 index 000000000..d74f9e8d8 --- /dev/null +++ b/config/sync/core.entity_form_display.media.audio.media_library.yml @@ -0,0 +1,30 @@ +uuid: abb96c6a-fd90-4a3e-bae3-f3c6032ac359 +langcode: en +status: true +dependencies: + config: + - core.entity_form_mode.media.media_library + - field.field.media.audio.field_media_audio_file + - media.type.audio +id: media.audio.media_library +targetEntityType: media +bundle: audio +mode: media_library +content: + name: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } +hidden: + created: true + field_media_audio_file: true + langcode: true + path: true + publish_on: true + status: true + uid: true + unpublish_on: true diff --git a/config/sync/core.entity_form_display.node.go_category_page.default.yml b/config/sync/core.entity_form_display.node.go_category_page.default.yml new file mode 100644 index 000000000..b5d8fcb6b --- /dev/null +++ b/config/sync/core.entity_form_display.node.go_category_page.default.yml @@ -0,0 +1,186 @@ +uuid: 11c322b1-35ed-4d57-a586-ff84873b12c6 +langcode: en +status: true +dependencies: + config: + - field.field.node.go_category_page.field_category_menu_color + - field.field.node.go_category_page.field_category_menu_image + - field.field.node.go_category_page.field_category_menu_sound + - field.field.node.go_category_page.field_category_menu_title + - field.field.node.go_category_page.field_paragraphs + - field.field.node.go_category_page.field_publication_date + - node.type.go_category_page + module: + - color_field + - datetime + - field_group + - media_library + - paragraphs + - paragraphs_ee + - paragraphs_features + - path + - scheduler +third_party_settings: + field_group: + group_category_info: + children: + - field_category_menu_title + - field_category_menu_color + - field_category_menu_image + - field_category_menu_sound + label: 'Category Info' + region: content + parent_name: '' + weight: 6 + format_type: details_sidebar + format_settings: + classes: '' + show_empty_fields: true + id: '' + label_as_html: false + open: true + description: 'These fields are will be used to display this category in the category menu.' + required_fields: true + weight: 0 + group_author_date: + children: + - field_publication_date + label: 'Author & Date' + region: content + parent_name: '' + weight: 7 + format_type: details_sidebar + format_settings: + classes: '' + show_empty_fields: false + id: '' + label_as_html: false + open: true + description: '' + required_fields: true + weight: 0 +id: node.go_category_page.default +targetEntityType: node +bundle: go_category_page +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 + region: content + settings: + media_types: { } + third_party_settings: { } + field_category_menu_sound: + type: media_library_widget + weight: 30 + region: content + settings: + media_types: { } + third_party_settings: { } + field_category_menu_title: + type: string_textfield + weight: 27 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + field_paragraphs: + type: paragraphs + weight: 1 + region: content + settings: + title: Paragraph + title_plural: Paragraphs + edit_mode: closed + closed_mode: preview + autocollapse: none + closed_mode_threshold: 0 + add_mode: modal + form_display_mode: default + default_paragraph_type: _none + features: + add_above: '0' + collapse_edit_all: collapse_edit_all + convert: '0' + duplicate: duplicate + third_party_settings: + paragraphs_features: + add_in_between: true + add_in_between_link_count: 0 + delete_confirmation: true + show_drag_and_drop: true + show_collapse_all: true + paragraphs_ee: + paragraphs_ee: + dialog_off_canvas: false + dialog_style: tiles + drag_drop: true + field_publication_date: + type: datetime_default + weight: 8 + region: content + settings: { } + third_party_settings: { } + path: + type: path + weight: 9 + region: content + settings: { } + third_party_settings: { } + publish_on: + type: datetime_timestamp_no_default + weight: 4 + region: content + settings: { } + third_party_settings: { } + scheduler_settings: + weight: 3 + region: content + settings: { } + third_party_settings: { } + simple_sitemap: + weight: 11 + region: content + settings: { } + third_party_settings: { } + status: + type: boolean_checkbox + weight: 2 + region: content + settings: + display_label: true + third_party_settings: { } + title: + type: string_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + third_party_settings: { } + unpublish_on: + type: datetime_timestamp_no_default + weight: 5 + region: content + settings: { } + third_party_settings: { } + url_redirects: + weight: 10 + region: content + settings: { } + third_party_settings: { } +hidden: + created: true + langcode: true + promote: true + sticky: true + uid: true diff --git a/config/sync/core.entity_view_display.media.audio.default.yml b/config/sync/core.entity_view_display.media.audio.default.yml new file mode 100644 index 000000000..de7d0b772 --- /dev/null +++ b/config/sync/core.entity_view_display.media.audio.default.yml @@ -0,0 +1,32 @@ +uuid: e3a9d838-ceaa-47b7-80e3-f2cfb2649060 +langcode: en +status: true +dependencies: + config: + - field.field.media.audio.field_media_audio_file + - media.type.audio + module: + - file +id: media.audio.default +targetEntityType: media +bundle: audio +mode: default +content: + field_media_audio_file: + type: file_audio + label: visually_hidden + settings: + controls: true + autoplay: false + loop: false + multiple_file_display_type: tags + third_party_settings: { } + weight: 0 + region: content +hidden: + created: true + langcode: true + name: true + search_api_excerpt: true + thumbnail: true + uid: true diff --git a/config/sync/core.entity_view_display.media.audio.media_library.yml b/config/sync/core.entity_view_display.media.audio.media_library.yml new file mode 100644 index 000000000..36352bed4 --- /dev/null +++ b/config/sync/core.entity_view_display.media.audio.media_library.yml @@ -0,0 +1,34 @@ +uuid: 626fe6a5-c0fa-45a5-acf4-33248c60743e +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.media.media_library + - field.field.media.audio.field_media_audio_file + - image.style.media_library + - media.type.audio + module: + - image +id: media.audio.media_library +targetEntityType: media +bundle: audio +mode: media_library +content: + thumbnail: + type: image + label: hidden + settings: + image_link: '' + image_style: media_library + image_loading: + attribute: lazy + third_party_settings: { } + weight: 0 + region: content +hidden: + created: true + field_media_audio_file: true + langcode: true + name: true + search_api_excerpt: true + uid: true diff --git a/config/sync/core.entity_view_display.node.go_category_page.card.yml b/config/sync/core.entity_view_display.node.go_category_page.card.yml new file mode 100644 index 000000000..8779ef1c3 --- /dev/null +++ b/config/sync/core.entity_view_display.node.go_category_page.card.yml @@ -0,0 +1,34 @@ +uuid: 42f55833-4233-470b-afd7-a015e0d1542f +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.card + - field.field.node.go_category_page.field_category_menu_color + - field.field.node.go_category_page.field_category_menu_image + - field.field.node.go_category_page.field_category_menu_sound + - field.field.node.go_category_page.field_category_menu_title + - field.field.node.go_category_page.field_paragraphs + - field.field.node.go_category_page.field_publication_date + - node.type.go_category_page + module: + - user +id: node.go_category_page.card +targetEntityType: node +bundle: go_category_page +mode: card +content: + links: + settings: { } + third_party_settings: { } + 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_paragraphs: true + field_publication_date: true + langcode: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.go_category_page.default.yml b/config/sync/core.entity_view_display.node.go_category_page.default.yml new file mode 100644 index 000000000..6cbf4d468 --- /dev/null +++ b/config/sync/core.entity_view_display.node.go_category_page.default.yml @@ -0,0 +1,74 @@ +uuid: e082bed0-08df-4e2a-9228-760b999ab858 +langcode: en +status: true +dependencies: + config: + - field.field.node.go_category_page.field_category_menu_color + - field.field.node.go_category_page.field_category_menu_image + - field.field.node.go_category_page.field_category_menu_sound + - field.field.node.go_category_page.field_category_menu_title + - field.field.node.go_category_page.field_paragraphs + - field.field.node.go_category_page.field_publication_date + - node.type.go_category_page + module: + - color_field + - datetime + - user +id: node.go_category_page.default +targetEntityType: node +bundle: go_category_page +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 + settings: + view_mode: default + link: false + third_party_settings: { } + weight: 116 + region: content + field_category_menu_sound: + type: entity_reference_entity_view + label: above + settings: + view_mode: default + link: false + third_party_settings: { } + weight: 117 + region: content + field_category_menu_title: + type: string + label: above + settings: + link_to_entity: false + third_party_settings: { } + weight: 115 + region: content + field_publication_date: + type: datetime_default + label: above + settings: + timezone_override: '' + format_type: medium + third_party_settings: { } + weight: 113 + region: content + links: + settings: { } + third_party_settings: { } + weight: 100 + region: content +hidden: + field_paragraphs: true + langcode: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.go_category_page.full.yml b/config/sync/core.entity_view_display.node.go_category_page.full.yml new file mode 100644 index 000000000..59ee95cc3 --- /dev/null +++ b/config/sync/core.entity_view_display.node.go_category_page.full.yml @@ -0,0 +1,43 @@ +uuid: 5396c6ea-1b2f-4ed8-80ed-0ee3004672ac +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.full + - field.field.node.go_category_page.field_category_menu_color + - field.field.node.go_category_page.field_category_menu_image + - field.field.node.go_category_page.field_category_menu_sound + - field.field.node.go_category_page.field_category_menu_title + - field.field.node.go_category_page.field_paragraphs + - field.field.node.go_category_page.field_publication_date + - node.type.go_category_page + module: + - entity_reference_revisions + - user +id: node.go_category_page.full +targetEntityType: node +bundle: go_category_page +mode: full +content: + field_paragraphs: + type: entity_reference_revisions_entity_view + label: hidden + settings: + view_mode: default + link: '' + third_party_settings: { } + weight: 4 + region: content + links: + settings: { } + third_party_settings: { } + 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_publication_date: true + langcode: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.go_category_page.list_teaser.yml b/config/sync/core.entity_view_display.node.go_category_page.list_teaser.yml new file mode 100644 index 000000000..44e66d8f8 --- /dev/null +++ b/config/sync/core.entity_view_display.node.go_category_page.list_teaser.yml @@ -0,0 +1,34 @@ +uuid: a88062c8-d9b2-47c5-aae5-eef5f90130a2 +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.list_teaser + - field.field.node.go_category_page.field_category_menu_color + - field.field.node.go_category_page.field_category_menu_image + - field.field.node.go_category_page.field_category_menu_sound + - field.field.node.go_category_page.field_category_menu_title + - field.field.node.go_category_page.field_paragraphs + - field.field.node.go_category_page.field_publication_date + - node.type.go_category_page + module: + - user +id: node.go_category_page.list_teaser +targetEntityType: node +bundle: go_category_page +mode: list_teaser +content: + links: + settings: { } + third_party_settings: { } + 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_paragraphs: true + field_publication_date: true + langcode: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.go_category_page.nav_spot.yml b/config/sync/core.entity_view_display.node.go_category_page.nav_spot.yml new file mode 100644 index 000000000..42824f279 --- /dev/null +++ b/config/sync/core.entity_view_display.node.go_category_page.nav_spot.yml @@ -0,0 +1,34 @@ +uuid: fa0ee0f9-001b-4bc0-89c8-ae11290c05c2 +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.nav_spot + - field.field.node.go_category_page.field_category_menu_color + - field.field.node.go_category_page.field_category_menu_image + - field.field.node.go_category_page.field_category_menu_sound + - field.field.node.go_category_page.field_category_menu_title + - field.field.node.go_category_page.field_paragraphs + - field.field.node.go_category_page.field_publication_date + - node.type.go_category_page + module: + - user +id: node.go_category_page.nav_spot +targetEntityType: node +bundle: go_category_page +mode: nav_spot +content: + links: + settings: { } + third_party_settings: { } + 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_paragraphs: true + field_publication_date: true + langcode: true + search_api_excerpt: true diff --git a/config/sync/core.entity_view_display.node.go_category_page.teaser.yml b/config/sync/core.entity_view_display.node.go_category_page.teaser.yml new file mode 100644 index 000000000..1db6f8d69 --- /dev/null +++ b/config/sync/core.entity_view_display.node.go_category_page.teaser.yml @@ -0,0 +1,34 @@ +uuid: 7267f2a3-647c-4483-b7c4-1663d459b693 +langcode: en +status: true +dependencies: + config: + - core.entity_view_mode.node.teaser + - field.field.node.go_category_page.field_category_menu_color + - field.field.node.go_category_page.field_category_menu_image + - field.field.node.go_category_page.field_category_menu_sound + - field.field.node.go_category_page.field_category_menu_title + - field.field.node.go_category_page.field_paragraphs + - field.field.node.go_category_page.field_publication_date + - node.type.go_category_page + module: + - user +id: node.go_category_page.teaser +targetEntityType: node +bundle: go_category_page +mode: teaser +content: + links: + settings: { } + third_party_settings: { } + 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_paragraphs: true + field_publication_date: true + langcode: true + search_api_excerpt: true diff --git a/config/sync/field.field.media.audio.field_media_audio_file.yml b/config/sync/field.field.media.audio.field_media_audio_file.yml new file mode 100644 index 000000000..7c1cfe472 --- /dev/null +++ b/config/sync/field.field.media.audio.field_media_audio_file.yml @@ -0,0 +1,27 @@ +uuid: f7c64f52-3234-4550-b3bf-4dd29cc4ee93 +langcode: en +status: true +dependencies: + config: + - field.storage.media.field_media_audio_file + - media.type.audio + module: + - file +id: media.audio.field_media_audio_file +field_name: field_media_audio_file +entity_type: media +bundle: audio +label: 'Audio file' +description: '' +required: true +translatable: true +default_value: { } +default_value_callback: '' +settings: + handler: 'default:file' + handler_settings: { } + file_directory: '[date:custom:Y]-[date:custom:m]' + file_extensions: 'mp3 wav aac' + max_filesize: '' + description_field: false +field_type: file diff --git a/config/sync/field.field.node.go_category_page.field_category_menu_color.yml b/config/sync/field.field.node.go_category_page.field_category_menu_color.yml new file mode 100644 index 000000000..686e4dd33 --- /dev/null +++ b/config/sync/field.field.node.go_category_page.field_category_menu_color.yml @@ -0,0 +1,22 @@ +uuid: 290ef023-4973-4fe2-bed0-6401e7cf38fc +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_category_menu_color + - node.type.go_category_page + module: + - color_field +id: node.go_category_page.field_category_menu_color +field_name: field_category_menu_color +entity_type: node +bundle: go_category_page +label: 'Category menu color' +description: '' +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + opacity: 0 +field_type: color_field_type diff --git a/config/sync/field.field.node.go_category_page.field_category_menu_image.yml b/config/sync/field.field.node.go_category_page.field_category_menu_image.yml new file mode 100644 index 000000000..bc2a119b4 --- /dev/null +++ b/config/sync/field.field.node.go_category_page.field_category_menu_image.yml @@ -0,0 +1,29 @@ +uuid: 55faccc2-8c92-464c-bd0d-82c952bbb97d +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_category_menu_image + - media.type.image + - node.type.go_category_page +id: node.go_category_page.field_category_menu_image +field_name: field_category_menu_image +entity_type: node +bundle: go_category_page +label: 'Category menu image' +description: "The category image will be shown in the category menu as part of this category's menu element." +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:media' + handler_settings: + target_bundles: + image: image + sort: + field: _none + direction: ASC + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/sync/field.field.node.go_category_page.field_category_menu_sound.yml b/config/sync/field.field.node.go_category_page.field_category_menu_sound.yml new file mode 100644 index 000000000..9f988508f --- /dev/null +++ b/config/sync/field.field.node.go_category_page.field_category_menu_sound.yml @@ -0,0 +1,29 @@ +uuid: a71d1077-309c-42ca-8da2-6fb7dff2e7ec +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_category_menu_sound + - media.type.audio + - node.type.go_category_page +id: node.go_category_page.field_category_menu_sound +field_name: field_category_menu_sound +entity_type: node +bundle: go_category_page +label: 'Category menu sound' +description: "The category sound will be able to be played in the category menu as part of this category's menu element." +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:media' + handler_settings: + target_bundles: + audio: audio + sort: + field: _none + direction: ASC + auto_create: false + auto_create_bundle: '' +field_type: entity_reference diff --git a/config/sync/field.field.node.go_category_page.field_category_menu_title.yml b/config/sync/field.field.node.go_category_page.field_category_menu_title.yml new file mode 100644 index 000000000..e54eb6623 --- /dev/null +++ b/config/sync/field.field.node.go_category_page.field_category_menu_title.yml @@ -0,0 +1,19 @@ +uuid: 9e4e840c-18e4-4e87-917c-758057e4327b +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_category_menu_title + - node.type.go_category_page +id: node.go_category_page.field_category_menu_title +field_name: field_category_menu_title +entity_type: node +bundle: go_category_page +label: 'Category menu title' +description: "The category title will be shown in the category menu as part of this category's menu element." +required: true +translatable: false +default_value: { } +default_value_callback: '' +settings: { } +field_type: string diff --git a/config/sync/field.field.node.go_category_page.field_paragraphs.yml b/config/sync/field.field.node.go_category_page.field_paragraphs.yml new file mode 100644 index 000000000..49e3a6134 --- /dev/null +++ b/config/sync/field.field.node.go_category_page.field_paragraphs.yml @@ -0,0 +1,118 @@ +uuid: 6df3e5db-4dc0-4b92-bc75-e2f164b82803 +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_paragraphs + - node.type.go_category_page + - paragraphs.paragraphs_type.go_video + module: + - entity_reference_revisions +id: node.go_category_page.field_paragraphs +field_name: field_paragraphs +entity_type: node +bundle: go_category_page +label: Paragraphs +description: '' +required: false +translatable: false +default_value: { } +default_value_callback: '' +settings: + handler: 'default:paragraph' + handler_settings: + target_bundles: + go_video: go_video + negate: 0 + target_bundles_drag_drop: + accordion: + weight: 22 + enabled: false + banner: + weight: 32 + enabled: false + breadcrumb_children: + weight: 33 + enabled: false + campaign_rule: + weight: 2 + enabled: false + card_grid_automatic: + weight: 24 + enabled: false + card_grid_manual: + weight: 25 + enabled: false + content_slider: + weight: 26 + enabled: false + content_slider_automatic: + weight: 38 + enabled: false + event_ticket_category: + weight: 7 + enabled: false + files: + weight: 28 + enabled: false + filtered_event_list: + weight: 41 + enabled: false + go_video: + weight: 42 + enabled: true + hero: + weight: 29 + enabled: false + language_selector: + weight: 30 + enabled: false + links: + weight: 8 + enabled: false + manual_event_list: + weight: 46 + enabled: false + material_grid_automatic: + weight: 32 + enabled: false + material_grid_manual: + weight: 33 + enabled: false + medias: + weight: 9 + enabled: false + nav_grid_manual: + weight: 35 + enabled: false + nav_spots_manual: + weight: 36 + enabled: false + opening_hours: + weight: 37 + enabled: false + recommendation: + weight: 38 + enabled: false + simple_links: + weight: 54 + enabled: false + text_body: + weight: 4 + enabled: false + user_registration_item: + weight: 40 + enabled: false + user_registration_linklist: + weight: 57 + enabled: false + user_registration_section: + weight: 41 + enabled: false + video: + weight: 42 + enabled: false + webform: + weight: 60 + enabled: false +field_type: entity_reference_revisions diff --git a/config/sync/field.field.node.go_category_page.field_publication_date.yml b/config/sync/field.field.node.go_category_page.field_publication_date.yml new file mode 100644 index 000000000..a3838aa74 --- /dev/null +++ b/config/sync/field.field.node.go_category_page.field_publication_date.yml @@ -0,0 +1,24 @@ +uuid: ed35886b-4b55-4f61-acff-c4b7cb45fd34 +langcode: en +status: true +dependencies: + config: + - field.storage.node.field_publication_date + - node.type.go_category_page + module: + - datetime +id: node.go_category_page.field_publication_date +field_name: field_publication_date +entity_type: node +bundle: go_category_page +label: 'Publication date' +description: '' +required: true +translatable: false +default_value: + - + default_date_type: now + default_date: now +default_value_callback: '' +settings: { } +field_type: datetime diff --git a/config/sync/field.storage.media.field_media_audio_file.yml b/config/sync/field.storage.media.field_media_audio_file.yml new file mode 100644 index 000000000..c699466f5 --- /dev/null +++ b/config/sync/field.storage.media.field_media_audio_file.yml @@ -0,0 +1,23 @@ +uuid: 17104d45-ed59-4a04-9ff7-8a31de0cacc9 +langcode: en +status: true +dependencies: + module: + - file + - media +id: media.field_media_audio_file +field_name: field_media_audio_file +entity_type: media +type: file +settings: + target_type: file + display_field: false + display_default: false + uri_scheme: public +module: file +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_category_menu_color.yml b/config/sync/field.storage.node.field_category_menu_color.yml new file mode 100644 index 000000000..647aefc28 --- /dev/null +++ b/config/sync/field.storage.node.field_category_menu_color.yml @@ -0,0 +1,20 @@ +uuid: 80b5cce0-cfdd-4f0f-b01b-f2625198f54d +langcode: en +status: true +dependencies: + module: + - color_field + - node +id: node.field_category_menu_color +field_name: field_category_menu_color +entity_type: node +type: color_field_type +settings: + format: '#HEXHEX' +module: color_field +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_category_menu_image.yml b/config/sync/field.storage.node.field_category_menu_image.yml new file mode 100644 index 000000000..d58896cd1 --- /dev/null +++ b/config/sync/field.storage.node.field_category_menu_image.yml @@ -0,0 +1,20 @@ +uuid: 3a65bf08-fd6c-4401-93be-3cb1a388fb94 +langcode: en +status: true +dependencies: + module: + - media + - node +id: node.field_category_menu_image +field_name: field_category_menu_image +entity_type: node +type: entity_reference +settings: + target_type: media +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_category_menu_sound.yml b/config/sync/field.storage.node.field_category_menu_sound.yml new file mode 100644 index 000000000..65f06a1ca --- /dev/null +++ b/config/sync/field.storage.node.field_category_menu_sound.yml @@ -0,0 +1,20 @@ +uuid: e51ac90f-b343-4b45-963e-0aea3b52c8f6 +langcode: en +status: true +dependencies: + module: + - media + - node +id: node.field_category_menu_sound +field_name: field_category_menu_sound +entity_type: node +type: entity_reference +settings: + target_type: media +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/field.storage.node.field_category_menu_title.yml b/config/sync/field.storage.node.field_category_menu_title.yml new file mode 100644 index 000000000..305c416d3 --- /dev/null +++ b/config/sync/field.storage.node.field_category_menu_title.yml @@ -0,0 +1,21 @@ +uuid: 42cbc804-ca13-40cc-ac94-3bcc153fbe6f +langcode: en +status: true +dependencies: + module: + - node +id: node.field_category_menu_title +field_name: field_category_menu_title +entity_type: node +type: string +settings: + max_length: 255 + case_sensitive: false + is_ascii: false +module: core +locked: false +cardinality: 1 +translatable: true +indexes: { } +persist_with_no_fields: false +custom_storage: false diff --git a/config/sync/graphql_compose.settings.yml b/config/sync/graphql_compose.settings.yml index 8422d9579..5934285a8 100644 --- a/config/sync/graphql_compose.settings.yml +++ b/config/sync/graphql_compose.settings.yml @@ -2,6 +2,8 @@ _core: default_config_hash: Sd_9jXBxw3mGn9d_y94jvlitI0wpvj6x2dQ0p6aGhJo entity_config: media: + audio: + enabled: true document: enabled: true image: @@ -16,6 +18,9 @@ entity_config: enabled: false campaign: enabled: false + go_category_page: + enabled: true + query_load_enabled: true go_page: enabled: true query_load_enabled: true @@ -97,6 +102,9 @@ entity_config: enabled: true field_config: media: + audio: + field_media_audio_file: + enabled: true document: field_media_file: enabled: true @@ -132,6 +140,19 @@ field_config: enabled: true field_teaser_text: enabled: true + go_category_page: + field_category_menu_color: + enabled: true + field_category_menu_image: + enabled: true + field_category_menu_sound: + enabled: true + field_category_menu_title: + enabled: true + field_paragraphs: + enabled: true + field_publication_date: + enabled: true go_page: field_paragraphs: enabled: true diff --git a/config/sync/language.content_settings.media.audio.yml b/config/sync/language.content_settings.media.audio.yml new file mode 100644 index 000000000..5b82ce528 --- /dev/null +++ b/config/sync/language.content_settings.media.audio.yml @@ -0,0 +1,11 @@ +uuid: 42a048cc-7814-46a4-bdf0-0de119d55e4f +langcode: en +status: true +dependencies: + config: + - media.type.audio +id: media.audio +target_entity_type_id: media +target_bundle: audio +default_langcode: site_default +language_alterable: false diff --git a/config/sync/language.content_settings.node.go_category_page.yml b/config/sync/language.content_settings.node.go_category_page.yml new file mode 100644 index 000000000..ba15d869a --- /dev/null +++ b/config/sync/language.content_settings.node.go_category_page.yml @@ -0,0 +1,11 @@ +uuid: 1d69a544-f028-402d-9105-abcb64fd241e +langcode: en +status: true +dependencies: + config: + - node.type.go_category_page +id: node.go_category_page +target_entity_type_id: node +target_bundle: go_category_page +default_langcode: da +language_alterable: false diff --git a/config/sync/media.type.audio.yml b/config/sync/media.type.audio.yml new file mode 100644 index 000000000..dd009e40f --- /dev/null +++ b/config/sync/media.type.audio.yml @@ -0,0 +1,29 @@ +uuid: 7bc70618-aaf4-4fa9-a7bc-03e6a6476759 +langcode: en +status: true +dependencies: + module: + - scheduler +third_party_settings: + scheduler: + expand_fieldset: when_required + fields_display_mode: vertical_tab + publish_enable: false + publish_past_date: error + publish_past_date_created: false + publish_required: false + publish_revision: false + publish_touch: false + show_message_after_update: true + unpublish_enable: false + unpublish_required: false + unpublish_revision: false +id: audio +label: Audio +description: '' +source: audio_file +queue_thumbnail_downloads: false +new_revision: false +source_configuration: + source_field: field_media_audio_file +field_map: { } diff --git a/config/sync/node.type.go_category_page.yml b/config/sync/node.type.go_category_page.yml new file mode 100644 index 000000000..5ff18b3f0 --- /dev/null +++ b/config/sync/node.type.go_category_page.yml @@ -0,0 +1,34 @@ +uuid: 8863bd71-d163-4445-bdff-b11c2cbd736f +langcode: en +status: true +dependencies: + module: + - entity_clone_template + - menu_ui + - scheduler +third_party_settings: + entity_clone_template: + entity_clone_template_active: 1 + menu_ui: + available_menus: { } + parent: '' + scheduler: + expand_fieldset: when_required + fields_display_mode: vertical_tab + publish_enable: true + publish_past_date: error + publish_past_date_created: false + publish_required: false + publish_revision: false + publish_touch: true + show_message_after_update: true + unpublish_enable: true + unpublish_required: false + unpublish_revision: false +name: 'GO category page' +type: go_category_page +description: "GO category pages will be used for creating a \"landingpage\" for specific categories. \r\nWhen creating and publishing a new category page, the category will automatically be added to the category menu." +help: null +new_revision: false +preview_mode: 1 +display_submitted: false diff --git a/config/sync/simple_sitemap.bundle_settings.default.node.go_category_page.yml b/config/sync/simple_sitemap.bundle_settings.default.node.go_category_page.yml new file mode 100644 index 000000000..8e55877d3 --- /dev/null +++ b/config/sync/simple_sitemap.bundle_settings.default.node.go_category_page.yml @@ -0,0 +1,4 @@ +index: true +priority: '0.5' +changefreq: '' +include_images: false From bf59a00c2fe1f1d9c9c8154c6162fbeac42a473e Mon Sep 17 00:00:00 2001 From: Andreas Nielsen Date: Mon, 13 Jan 2025 15:27:49 +0100 Subject: [PATCH 3/5] Enabled the module "GraphQL Compose Routes" module as we want to be able to query nodes based on their url rather than their UUID's. Enabled route querying for the GO content types "GO Page" and "GO Category Page". --- config/sync/core.extension.yml | 1 + config/sync/graphql_compose.settings.yml | 2 ++ .../src/Plugin/GraphQLCompose/FieldType/ColorItem.php | 8 ++++---- .../src/Plugin/GraphQLCompose/SchemaType/ColorType.php | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 90aff7088..a0d3d49da 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -103,6 +103,7 @@ module: gin_toolbar: 0 graphql: 0 graphql_compose: 0 + graphql_compose_routes: 0 handy_cache_tags: 0 health_check: 0 honeypot: 0 diff --git a/config/sync/graphql_compose.settings.yml b/config/sync/graphql_compose.settings.yml index 5934285a8..d641beb67 100644 --- a/config/sync/graphql_compose.settings.yml +++ b/config/sync/graphql_compose.settings.yml @@ -21,9 +21,11 @@ entity_config: go_category_page: enabled: true query_load_enabled: true + routes_enabled: true go_page: enabled: true query_load_enabled: true + routes_enabled: true page: enabled: false paragraph: diff --git a/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/FieldType/ColorItem.php b/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/FieldType/ColorItem.php index c53ecee2d..8744abf84 100644 --- a/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/FieldType/ColorItem.php +++ b/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/FieldType/ColorItem.php @@ -7,8 +7,8 @@ use Drupal\Core\Field\FieldItemInterface; use Drupal\graphql\GraphQL\Execution\FieldContext; use Drupal\graphql_compose\Plugin\GraphQL\DataProducer\FieldProducerItemInterface; -use Drupal\graphql_compose\Plugin\GraphQLCompose\GraphQLComposeFieldTypeBase; use Drupal\graphql_compose\Plugin\GraphQL\DataProducer\FieldProducerTrait; +use Drupal\graphql_compose\Plugin\GraphQLCompose\GraphQLComposeFieldTypeBase; /** * {@inheritDoc} @@ -18,7 +18,7 @@ * type_sdl = "Color", * ) */ -class ColorItem extends GraphQLComposeFieldTypeBase implements FieldProducerItemInterface{ +class ColorItem extends GraphQLComposeFieldTypeBase implements FieldProducerItemInterface { use FieldProducerTrait; @@ -28,8 +28,8 @@ class ColorItem extends GraphQLComposeFieldTypeBase implements FieldProducerItem public function resolveFieldItem(FieldItemInterface $item, FieldContext $context) { return [ - 'color' => $item->color, - 'opacity' => $item->opacity + 'color' => isset($item->color), + 'opacity' => isset($item->opacity), ]; } diff --git a/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/SchemaType/ColorType.php b/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/SchemaType/ColorType.php index dc4012f32..7f919215f 100644 --- a/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/SchemaType/ColorType.php +++ b/web/modules/custom/dpl_graphql/src/Plugin/GraphQLCompose/SchemaType/ColorType.php @@ -18,7 +18,7 @@ class ColorType extends GraphQLComposeSchemaTypeBase { /** - * @inheritDoc + * {@inheritdoc} */ public function getTypes(): array { $types = []; From 5d3567dcd6dd86ae093d79db58240c59fb3f0e44 Mon Sep 17 00:00:00 2001 From: Andreas Nielsen Date: Tue, 14 Jan 2025 14:44:40 +0100 Subject: [PATCH 4/5] Added a new role called 'GO Editor' (go_editor) which will be used for handling GO specific content and configuration. Also added a new custom permission to the dpl_unilogin configuration route and enabled the permission for the new "GO Editor" role. Lastly we removed the "Bypass content access control" permission, and instead added specific content access permissions for each content type to each role. --- .../sync/administerusersbyrole.settings.yml | 1 + ....action.user_add_role_action.go_editor.yml | 14 +++ ...tion.user_remove_role_action.go_editor.yml | 14 +++ config/sync/user.role.administrator.yml | 21 ++-- config/sync/user.role.editor.yml | 21 ++-- config/sync/user.role.go_editor.yml | 114 ++++++++++++++++++ config/sync/user.role.local_administrator.yml | 21 ++-- config/sync/user.role.mediator.yml | 18 +-- .../dpl_unilogin/dpl_unilogin.permissions.yml | 3 + .../dpl_unilogin/dpl_unilogin.routing.yml | 2 +- 10 files changed, 188 insertions(+), 41 deletions(-) create mode 100644 config/sync/system.action.user_add_role_action.go_editor.yml create mode 100644 config/sync/system.action.user_remove_role_action.go_editor.yml create mode 100644 config/sync/user.role.go_editor.yml create mode 100644 web/modules/custom/dpl_unilogin/dpl_unilogin.permissions.yml diff --git a/config/sync/administerusersbyrole.settings.yml b/config/sync/administerusersbyrole.settings.yml index 5d5843cbe..49024479f 100644 --- a/config/sync/administerusersbyrole.settings.yml +++ b/config/sync/administerusersbyrole.settings.yml @@ -9,3 +9,4 @@ roles: external_system: safe bnf_graphql_client: unsafe go_graphql_client: unsafe + go_editor: unsafe diff --git a/config/sync/system.action.user_add_role_action.go_editor.yml b/config/sync/system.action.user_add_role_action.go_editor.yml new file mode 100644 index 000000000..6a9e17522 --- /dev/null +++ b/config/sync/system.action.user_add_role_action.go_editor.yml @@ -0,0 +1,14 @@ +uuid: 898ac13b-ae50-4933-b48b-73253f6b6275 +langcode: en +status: true +dependencies: + config: + - user.role.go_editor + module: + - user +id: user_add_role_action.go_editor +label: 'Add the GO Editor role to the selected user(s)' +type: user +plugin: user_add_role_action +configuration: + rid: go_editor diff --git a/config/sync/system.action.user_remove_role_action.go_editor.yml b/config/sync/system.action.user_remove_role_action.go_editor.yml new file mode 100644 index 000000000..e1367bfc2 --- /dev/null +++ b/config/sync/system.action.user_remove_role_action.go_editor.yml @@ -0,0 +1,14 @@ +uuid: 1cac38fa-25f6-4dbe-94fd-dbc268990be6 +langcode: en +status: true +dependencies: + config: + - user.role.go_editor + module: + - user +id: user_remove_role_action.go_editor +label: 'Remove the GO Editor role from the selected user(s)' +type: user +plugin: user_remove_role_action +configuration: + rid: go_editor diff --git a/config/sync/user.role.administrator.yml b/config/sync/user.role.administrator.yml index b6f7e1620..f507bde9d 100644 --- a/config/sync/user.role.administrator.yml +++ b/config/sync/user.role.administrator.yml @@ -6,13 +6,13 @@ dependencies: - filter.format.basic - filter.format.limited - filter.format.underlined_title + - media.type.audio - media.type.document - media.type.image - media.type.video - node.type.article - node.type.branch - node.type.campaign - - node.type.go_page - node.type.page - rest.resource.dpl_opening_hours_create - rest.resource.dpl_opening_hours_delete @@ -125,7 +125,6 @@ permissions: - 'administer webform element access' - 'administer webform submission' - 'break content lock' - - 'bypass node access' - 'cancel users by role' - 'change own username' - 'clone eventinstance entity' @@ -133,10 +132,10 @@ permissions: - 'clone eventseries_type entity' - 'clone node entity' - 'create article content' + - 'create audio media' - 'create branch content' - 'create campaign content' - 'create document media' - - 'create go_page content' - 'create image media' - 'create media' - 'create page content' @@ -152,11 +151,11 @@ permissions: - 'create webform' - 'delete all revisions' - 'delete any article content' + - 'delete any audio media' - 'delete any branch content' - 'delete any campaign content' - 'delete any document media' - 'delete any file' - - 'delete any go_page content' - 'delete any image media' - 'delete any media' - 'delete any page content' @@ -168,19 +167,18 @@ permissions: - 'delete campaign revisions' - 'delete eventinstance entity' - 'delete eventseries entity' - - 'delete go_page revisions' - 'delete links in admin menu' - 'delete links in main menu' - 'delete media' - 'delete orphan revisions' - 'delete own article content' + - 'delete own audio media' - 'delete own branch content' - 'delete own campaign content' - 'delete own document media' - 'delete own eventinstance entity' - 'delete own eventseries entity' - 'delete own files' - - 'delete own go_page content' - 'delete own image media' - 'delete own page content' - 'delete own video media' @@ -197,10 +195,10 @@ permissions: - 'dpl admin access pages' - 'edit admin menu' - 'edit any article content' + - 'edit any audio media' - 'edit any branch content' - 'edit any campaign content' - 'edit any document media' - - 'edit any go_page content' - 'edit any image media' - 'edit any page content' - 'edit any video media' @@ -212,12 +210,12 @@ permissions: - 'edit links in main menu' - 'edit main menu' - 'edit own article content' + - 'edit own audio media' - 'edit own branch content' - 'edit own campaign content' - 'edit own document media' - 'edit own eventinstance entity' - 'edit own eventseries entity' - - 'edit own go_page content' - 'edit own image media' - 'edit own page content' - 'edit own video media' @@ -246,7 +244,6 @@ permissions: - 'revert all revisions' - 'revert article revisions' - 'revert campaign revisions' - - 'revert go_page revisions' - 'revert page revisions' - 'role-assign users by role' - 'schedule publishing of eventseries' @@ -261,11 +258,13 @@ permissions: - 'view admin menu in menu list' - 'view all media revisions' - 'view all revisions' - - 'view any unpublished content' + - 'view any unpublished article content' + - 'view any unpublished branch content' + - 'view any unpublished campaign content' + - 'view any unpublished page content' - 'view any webform submission' - 'view article revisions' - 'view campaign revisions' - - 'view go_page revisions' - 'view main menu in menu list' - 'view own unpublished content' - 'view own unpublished media' diff --git a/config/sync/user.role.editor.yml b/config/sync/user.role.editor.yml index e99b7d7b0..47cf755c6 100644 --- a/config/sync/user.role.editor.yml +++ b/config/sync/user.role.editor.yml @@ -6,13 +6,13 @@ dependencies: - filter.format.basic - filter.format.limited - filter.format.underlined_title + - media.type.audio - media.type.document - media.type.image - media.type.video - node.type.article - node.type.branch - node.type.campaign - - node.type.go_page - node.type.page - rest.resource.dpl_opening_hours_create - rest.resource.dpl_opening_hours_delete @@ -72,17 +72,16 @@ permissions: - 'administer nodes' - 'administer redirects' - 'break content lock' - - 'bypass node access' - 'change own username' - 'clone eventinstance entity' - 'clone eventseries entity' - 'clone eventseries_type entity' - 'clone node entity' - 'create article content' + - 'create audio media' - 'create branch content' - 'create campaign content' - 'create document media' - - 'create go_page content' - 'create image media' - 'create media' - 'create page content' @@ -95,10 +94,10 @@ permissions: - 'create webform' - 'delete all revisions' - 'delete any article content' + - 'delete any audio media' - 'delete any branch content' - 'delete any campaign content' - 'delete any document media' - - 'delete any go_page content' - 'delete any image media' - 'delete any media' - 'delete any page content' @@ -108,17 +107,16 @@ permissions: - 'delete campaign revisions' - 'delete eventinstance entity' - 'delete eventseries entity' - - 'delete go_page revisions' - 'delete links in main menu' - 'delete media' - 'delete own article content' + - 'delete own audio media' - 'delete own branch content' - 'delete own campaign content' - 'delete own document media' - 'delete own eventinstance entity' - 'delete own eventseries entity' - 'delete own files' - - 'delete own go_page content' - 'delete own image media' - 'delete own page content' - 'delete own video media' @@ -131,10 +129,10 @@ permissions: - 'delete terms in webform_email_categories' - 'dpl admin access pages' - 'edit any article content' + - 'edit any audio media' - 'edit any branch content' - 'edit any campaign content' - 'edit any document media' - - 'edit any go_page content' - 'edit any image media' - 'edit any page content' - 'edit any video media' @@ -144,12 +142,12 @@ permissions: - 'edit links in main menu' - 'edit main menu' - 'edit own article content' + - 'edit own audio media' - 'edit own branch content' - 'edit own campaign content' - 'edit own document media' - 'edit own eventinstance entity' - 'edit own eventseries entity' - - 'edit own go_page content' - 'edit own image media' - 'edit own page content' - 'edit own video media' @@ -168,7 +166,6 @@ permissions: - 'revert all revisions' - 'revert article revisions' - 'revert campaign revisions' - - 'revert go_page revisions' - 'revert page revisions' - 'schedule publishing of eventseries' - 'schedule publishing of nodes' @@ -179,10 +176,12 @@ permissions: - 'use text format underlined_title' - 'view all media revisions' - 'view all revisions' - - 'view any unpublished content' + - 'view any unpublished article content' + - 'view any unpublished branch content' + - 'view any unpublished campaign content' + - 'view any unpublished page content' - 'view article revisions' - 'view campaign revisions' - - 'view go_page revisions' - 'view main menu in menu list' - 'view own unpublished content' - 'view own unpublished media' diff --git a/config/sync/user.role.go_editor.yml b/config/sync/user.role.go_editor.yml new file mode 100644 index 000000000..37865c89a --- /dev/null +++ b/config/sync/user.role.go_editor.yml @@ -0,0 +1,114 @@ +uuid: d2a6c001-46cd-440d-8efd-ff5499ebdee6 +langcode: en +status: true +dependencies: + config: + - filter.format.basic + - filter.format.limited + - filter.format.underlined_title + - media.type.audio + - media.type.document + - media.type.image + - media.type.video + - node.type.go_category_page + - node.type.go_page + - node.type.page + module: + - administerusersbyrole + - content_lock + - dpl_admin + - dpl_unilogin + - entity_clone + - field_inheritance + - file + - filter + - media + - node + - paragraphs + - redirect + - scheduler + - system + - toolbar + - view_unpublished +id: go_editor +label: 'GO Editor' +weight: 11 +is_admin: null +permissions: + - 'access administration pages' + - 'access content overview' + - 'access media overview' + - 'access toolbar' + - 'access user profiles' + - 'access users overview' + - 'administer entity field inheritance' + - 'administer nodes' + - 'administer redirects' + - 'administer unilogin settings' + - 'break content lock' + - 'change own username' + - 'clone node entity' + - 'create audio media' + - 'create document media' + - 'create go_category_page content' + - 'create go_page content' + - 'create image media' + - 'create media' + - 'create video media' + - 'delete all revisions' + - 'delete any audio media' + - 'delete any document media' + - 'delete any go_category_page content' + - 'delete any go_page content' + - 'delete any image media' + - 'delete any media' + - 'delete any video media' + - 'delete go_category_page revisions' + - 'delete go_page revisions' + - 'delete media' + - 'delete own audio media' + - 'delete own document media' + - 'delete own files' + - 'delete own go_category_page content' + - 'delete own go_page content' + - 'delete own image media' + - 'delete own video media' + - 'dpl admin access pages' + - 'edit any audio media' + - 'edit any document media' + - 'edit any go_category_page content' + - 'edit any go_page content' + - 'edit any image media' + - 'edit any video media' + - 'edit own audio media' + - 'edit own document media' + - 'edit own go_category_page content' + - 'edit own go_page content' + - 'edit own image media' + - 'edit own video media' + - 'revert all revisions' + - 'revert go_category_page revisions' + - 'revert go_page revisions' + - 'schedule publishing of eventseries' + - 'schedule publishing of nodes' + - 'update any media' + - 'update media' + - 'use text format basic' + - 'use text format limited' + - 'use text format underlined_title' + - 'view all media revisions' + - 'view all revisions' + - 'view any unpublished go_category_page content' + - 'view any unpublished go_page content' + - 'view go_category_page revisions' + - 'view go_page revisions' + - 'view own unpublished content' + - 'view own unpublished media' + - 'view page revisions' + - 'view scheduled content' + - 'view scheduled eventseries' + - 'view scheduled media' + - 'view scheduled taxonomy_term' + - 'view the administration theme' + - 'view unpublished paragraphs' + - 'view users by role' diff --git a/config/sync/user.role.local_administrator.yml b/config/sync/user.role.local_administrator.yml index 36f758567..f8909265c 100644 --- a/config/sync/user.role.local_administrator.yml +++ b/config/sync/user.role.local_administrator.yml @@ -6,13 +6,13 @@ dependencies: - filter.format.basic - filter.format.limited - filter.format.underlined_title + - media.type.audio - media.type.document - media.type.image - media.type.video - node.type.article - node.type.branch - node.type.campaign - - node.type.go_page - node.type.page - rest.resource.dpl_opening_hours_create - rest.resource.dpl_opening_hours_delete @@ -98,7 +98,6 @@ permissions: - 'administer themes novel' - 'administer url proxy configuration' - 'break content lock' - - 'bypass node access' - 'cancel users by role' - 'change own username' - 'clone eventinstance entity' @@ -106,10 +105,10 @@ permissions: - 'clone eventseries_type entity' - 'clone node entity' - 'create article content' + - 'create audio media' - 'create branch content' - 'create campaign content' - 'create document media' - - 'create go_page content' - 'create image media' - 'create media' - 'create page content' @@ -125,11 +124,11 @@ permissions: - 'create webform' - 'delete all revisions' - 'delete any article content' + - 'delete any audio media' - 'delete any branch content' - 'delete any campaign content' - 'delete any document media' - 'delete any file' - - 'delete any go_page content' - 'delete any image media' - 'delete any media' - 'delete any page content' @@ -140,18 +139,17 @@ permissions: - 'delete campaign revisions' - 'delete eventinstance entity' - 'delete eventseries entity' - - 'delete go_page revisions' - 'delete links in admin menu' - 'delete links in main menu' - 'delete media' - 'delete own article content' + - 'delete own audio media' - 'delete own branch content' - 'delete own campaign content' - 'delete own document media' - 'delete own eventinstance entity' - 'delete own eventseries entity' - 'delete own files' - - 'delete own go_page content' - 'delete own image media' - 'delete own page content' - 'delete own video media' @@ -165,10 +163,10 @@ permissions: - 'dpl admin access pages' - 'edit admin menu' - 'edit any article content' + - 'edit any audio media' - 'edit any branch content' - 'edit any campaign content' - 'edit any document media' - - 'edit any go_page content' - 'edit any image media' - 'edit any page content' - 'edit any video media' @@ -179,12 +177,12 @@ permissions: - 'edit links in main menu' - 'edit main menu' - 'edit own article content' + - 'edit own audio media' - 'edit own branch content' - 'edit own campaign content' - 'edit own document media' - 'edit own eventinstance entity' - 'edit own eventseries entity' - - 'edit own go_page content' - 'edit own image media' - 'edit own page content' - 'edit own video media' @@ -207,7 +205,6 @@ permissions: - 'revert all revisions' - 'revert article revisions' - 'revert campaign revisions' - - 'revert go_page revisions' - 'revert page revisions' - 'role-assign users by role' - 'schedule publishing of eventseries' @@ -222,10 +219,12 @@ permissions: - 'view admin menu in menu list' - 'view all media revisions' - 'view all revisions' - - 'view any unpublished content' + - 'view any unpublished article content' + - 'view any unpublished branch content' + - 'view any unpublished campaign content' + - 'view any unpublished page content' - 'view article revisions' - 'view campaign revisions' - - 'view go_page revisions' - 'view main menu in menu list' - 'view own unpublished content' - 'view own unpublished media' diff --git a/config/sync/user.role.mediator.yml b/config/sync/user.role.mediator.yml index 3c0a5c29f..efaa7ebd2 100644 --- a/config/sync/user.role.mediator.yml +++ b/config/sync/user.role.mediator.yml @@ -6,12 +6,13 @@ dependencies: - filter.format.basic - filter.format.limited - filter.format.underlined_title + - media.type.audio - media.type.document - media.type.image - media.type.video - node.type.article + - node.type.branch - node.type.campaign - - node.type.go_page - node.type.page - taxonomy.vocabulary.tags module: @@ -58,18 +59,18 @@ permissions: - 'clone eventseries_type entity' - 'clone node entity' - 'create article content' + - 'create audio media' - 'create campaign content' - 'create document media' - - 'create go_page content' - 'create image media' - 'create media' - 'create page content' - 'create terms in tags' - 'create video media' - 'delete any article content' + - 'delete any audio media' - 'delete any campaign content' - 'delete any document media' - - 'delete any go_page content' - 'delete any image media' - 'delete any media' - 'delete any page content' @@ -78,31 +79,31 @@ permissions: - 'delete eventseries entity' - 'delete media' - 'delete own article content' + - 'delete own audio media' - 'delete own campaign content' - 'delete own document media' - 'delete own eventinstance entity' - 'delete own eventseries entity' - 'delete own files' - - 'delete own go_page content' - 'delete own image media' - 'delete own page content' - 'delete own video media' - 'dpl admin access pages' - 'edit any article content' + - 'edit any audio media' - 'edit any campaign content' - 'edit any document media' - - 'edit any go_page content' - 'edit any image media' - 'edit any page content' - 'edit any video media' - 'edit eventinstance entity' - 'edit eventseries entity' - 'edit own article content' + - 'edit own audio media' - 'edit own campaign content' - 'edit own document media' - 'edit own eventinstance entity' - 'edit own eventseries entity' - - 'edit own go_page content' - 'edit own image media' - 'edit own page content' - 'edit own video media' @@ -116,7 +117,10 @@ permissions: - 'use text format limited' - 'use text format underlined_title' - 'view all media revisions' - - 'view any unpublished content' + - 'view any unpublished article content' + - 'view any unpublished branch content' + - 'view any unpublished campaign content' + - 'view any unpublished page content' - 'view own unpublished content' - 'view own unpublished media' - 'view scheduled content' diff --git a/web/modules/custom/dpl_unilogin/dpl_unilogin.permissions.yml b/web/modules/custom/dpl_unilogin/dpl_unilogin.permissions.yml new file mode 100644 index 000000000..d8c94990e --- /dev/null +++ b/web/modules/custom/dpl_unilogin/dpl_unilogin.permissions.yml @@ -0,0 +1,3 @@ +administer unilogin settings: + title: 'Administer UniLogin settings' + description: 'Administer UniLogin settings used on GO sites' diff --git a/web/modules/custom/dpl_unilogin/dpl_unilogin.routing.yml b/web/modules/custom/dpl_unilogin/dpl_unilogin.routing.yml index 8435e5041..01f254d65 100644 --- a/web/modules/custom/dpl_unilogin/dpl_unilogin.routing.yml +++ b/web/modules/custom/dpl_unilogin/dpl_unilogin.routing.yml @@ -4,6 +4,6 @@ dpl_unilogin.settings: _form: '\Drupal\dpl_unilogin\Form\UniloginConfigurationForm' _title: 'Unilogin configuration' requirements: - _permission: 'administer site configuration' + _permission: 'aadminister unilogin settings' options: _admin_route: TRUE From 841ffac656c6945b236a415ed776641cfdaf6dbd Mon Sep 17 00:00:00 2001 From: Andreas Nielsen Date: Wed, 15 Jan 2025 03:14:07 +0100 Subject: [PATCH 5/5] Refactored the "go_category_page" into "go_category". This includes both file names, machine names and labels of the content type. --- ...eld_override.node.go_category.promote.yml} | 6 +++--- ...form_display.node.go_category.default.yml} | 18 ++++++++--------- ...ty_view_display.node.go_category.card.yml} | 18 ++++++++--------- ...view_display.node.go_category.default.yml} | 18 ++++++++--------- ...ty_view_display.node.go_category.full.yml} | 18 ++++++++--------- ..._display.node.go_category.list_teaser.yml} | 18 ++++++++--------- ...iew_display.node.go_category.nav_spot.yml} | 18 ++++++++--------- ..._view_display.node.go_category.teaser.yml} | 18 ++++++++--------- ...go_category.field_category_menu_color.yml} | 6 +++--- ...go_category.field_category_menu_image.yml} | 6 +++--- ...go_category.field_category_menu_sound.yml} | 6 +++--- ...go_category.field_category_menu_title.yml} | 6 +++--- ...eld.node.go_category.field_paragraphs.yml} | 6 +++--- ...de.go_category.field_publication_date.yml} | 6 +++--- config/sync/graphql_compose.settings.yml | 4 ++-- ...age.content_settings.node.go_category.yml} | 6 +++--- ...ory_page.yml => node.type.go_category.yml} | 4 ++-- ...dle_settings.default.node.go_category.yml} | 0 config/sync/user.role.go_editor.yml | 20 +++++++++---------- 19 files changed, 101 insertions(+), 101 deletions(-) rename config/sync/{core.base_field_override.node.go_category_page.promote.yml => core.base_field_override.node.go_category.promote.yml} (78%) rename config/sync/{core.entity_form_display.node.go_category_page.default.yml => core.entity_form_display.node.go_category.default.yml} (89%) rename config/sync/{core.entity_view_display.node.go_category_page.card.yml => core.entity_view_display.node.go_category.card.yml} (53%) rename config/sync/{core.entity_view_display.node.go_category_page.default.yml => core.entity_view_display.node.go_category.default.yml} (74%) rename config/sync/{core.entity_view_display.node.go_category_page.full.yml => core.entity_view_display.node.go_category.full.yml} (61%) rename config/sync/{core.entity_view_display.node.go_category_page.list_teaser.yml => core.entity_view_display.node.go_category.list_teaser.yml} (53%) rename config/sync/{core.entity_view_display.node.go_category_page.nav_spot.yml => core.entity_view_display.node.go_category.nav_spot.yml} (53%) rename config/sync/{core.entity_view_display.node.go_category_page.teaser.yml => core.entity_view_display.node.go_category.teaser.yml} (53%) rename config/sync/{field.field.node.go_category_page.field_category_menu_color.yml => field.field.node.go_category.field_category_menu_color.yml} (78%) rename config/sync/{field.field.node.go_category_page.field_category_menu_image.yml => field.field.node.go_category.field_category_menu_image.yml} (85%) rename config/sync/{field.field.node.go_category_page.field_category_menu_sound.yml => field.field.node.go_category.field_category_menu_sound.yml} (86%) rename config/sync/{field.field.node.go_category_page.field_category_menu_title.yml => field.field.node.go_category.field_category_menu_title.yml} (80%) rename config/sync/{field.field.node.go_category_page.field_paragraphs.yml => field.field.node.go_category.field_paragraphs.yml} (96%) rename config/sync/{field.field.node.go_category_page.field_publication_date.yml => field.field.node.go_category.field_publication_date.yml} (79%) rename config/sync/{language.content_settings.node.go_category_page.yml => language.content_settings.node.go_category.yml} (64%) rename config/sync/{node.type.go_category_page.yml => node.type.go_category.yml} (95%) rename config/sync/{simple_sitemap.bundle_settings.default.node.go_category_page.yml => simple_sitemap.bundle_settings.default.node.go_category.yml} (100%) diff --git a/config/sync/core.base_field_override.node.go_category_page.promote.yml b/config/sync/core.base_field_override.node.go_category.promote.yml similarity index 78% rename from config/sync/core.base_field_override.node.go_category_page.promote.yml rename to config/sync/core.base_field_override.node.go_category.promote.yml index f668fd3e4..5587ed7d8 100644 --- a/config/sync/core.base_field_override.node.go_category_page.promote.yml +++ b/config/sync/core.base_field_override.node.go_category.promote.yml @@ -3,11 +3,11 @@ langcode: en status: true dependencies: config: - - node.type.go_category_page -id: node.go_category_page.promote + - node.type.go_category +id: node.go_category.promote field_name: promote entity_type: node -bundle: go_category_page +bundle: go_category label: 'Promoted to front page' description: '' required: false diff --git a/config/sync/core.entity_form_display.node.go_category_page.default.yml b/config/sync/core.entity_form_display.node.go_category.default.yml similarity index 89% rename from config/sync/core.entity_form_display.node.go_category_page.default.yml rename to config/sync/core.entity_form_display.node.go_category.default.yml index b5d8fcb6b..5fd6d792e 100644 --- a/config/sync/core.entity_form_display.node.go_category_page.default.yml +++ b/config/sync/core.entity_form_display.node.go_category.default.yml @@ -3,13 +3,13 @@ langcode: en status: true dependencies: config: - - field.field.node.go_category_page.field_category_menu_color - - field.field.node.go_category_page.field_category_menu_image - - field.field.node.go_category_page.field_category_menu_sound - - field.field.node.go_category_page.field_category_menu_title - - field.field.node.go_category_page.field_paragraphs - - field.field.node.go_category_page.field_publication_date - - node.type.go_category_page + - 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_paragraphs + - field.field.node.go_category.field_publication_date + - node.type.go_category module: - color_field - datetime @@ -59,9 +59,9 @@ third_party_settings: description: '' required_fields: true weight: 0 -id: node.go_category_page.default +id: node.go_category.default targetEntityType: node -bundle: go_category_page +bundle: go_category mode: default content: field_category_menu_color: diff --git a/config/sync/core.entity_view_display.node.go_category_page.card.yml b/config/sync/core.entity_view_display.node.go_category.card.yml similarity index 53% rename from config/sync/core.entity_view_display.node.go_category_page.card.yml rename to config/sync/core.entity_view_display.node.go_category.card.yml index 8779ef1c3..40d52f732 100644 --- a/config/sync/core.entity_view_display.node.go_category_page.card.yml +++ b/config/sync/core.entity_view_display.node.go_category.card.yml @@ -4,18 +4,18 @@ status: true dependencies: config: - core.entity_view_mode.node.card - - field.field.node.go_category_page.field_category_menu_color - - field.field.node.go_category_page.field_category_menu_image - - field.field.node.go_category_page.field_category_menu_sound - - field.field.node.go_category_page.field_category_menu_title - - field.field.node.go_category_page.field_paragraphs - - field.field.node.go_category_page.field_publication_date - - node.type.go_category_page + - 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_paragraphs + - field.field.node.go_category.field_publication_date + - node.type.go_category module: - user -id: node.go_category_page.card +id: node.go_category.card targetEntityType: node -bundle: go_category_page +bundle: go_category mode: card content: links: diff --git a/config/sync/core.entity_view_display.node.go_category_page.default.yml b/config/sync/core.entity_view_display.node.go_category.default.yml similarity index 74% rename from config/sync/core.entity_view_display.node.go_category_page.default.yml rename to config/sync/core.entity_view_display.node.go_category.default.yml index 6cbf4d468..ca36deeb2 100644 --- a/config/sync/core.entity_view_display.node.go_category_page.default.yml +++ b/config/sync/core.entity_view_display.node.go_category.default.yml @@ -3,20 +3,20 @@ langcode: en status: true dependencies: config: - - field.field.node.go_category_page.field_category_menu_color - - field.field.node.go_category_page.field_category_menu_image - - field.field.node.go_category_page.field_category_menu_sound - - field.field.node.go_category_page.field_category_menu_title - - field.field.node.go_category_page.field_paragraphs - - field.field.node.go_category_page.field_publication_date - - node.type.go_category_page + - 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_paragraphs + - field.field.node.go_category.field_publication_date + - node.type.go_category module: - color_field - datetime - user -id: node.go_category_page.default +id: node.go_category.default targetEntityType: node -bundle: go_category_page +bundle: go_category mode: default content: field_category_menu_color: diff --git a/config/sync/core.entity_view_display.node.go_category_page.full.yml b/config/sync/core.entity_view_display.node.go_category.full.yml similarity index 61% rename from config/sync/core.entity_view_display.node.go_category_page.full.yml rename to config/sync/core.entity_view_display.node.go_category.full.yml index 59ee95cc3..ee8f755c3 100644 --- a/config/sync/core.entity_view_display.node.go_category_page.full.yml +++ b/config/sync/core.entity_view_display.node.go_category.full.yml @@ -4,19 +4,19 @@ status: true dependencies: config: - core.entity_view_mode.node.full - - field.field.node.go_category_page.field_category_menu_color - - field.field.node.go_category_page.field_category_menu_image - - field.field.node.go_category_page.field_category_menu_sound - - field.field.node.go_category_page.field_category_menu_title - - field.field.node.go_category_page.field_paragraphs - - field.field.node.go_category_page.field_publication_date - - node.type.go_category_page + - 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_paragraphs + - field.field.node.go_category.field_publication_date + - node.type.go_category module: - entity_reference_revisions - user -id: node.go_category_page.full +id: node.go_category.full targetEntityType: node -bundle: go_category_page +bundle: go_category mode: full content: field_paragraphs: diff --git a/config/sync/core.entity_view_display.node.go_category_page.list_teaser.yml b/config/sync/core.entity_view_display.node.go_category.list_teaser.yml similarity index 53% rename from config/sync/core.entity_view_display.node.go_category_page.list_teaser.yml rename to config/sync/core.entity_view_display.node.go_category.list_teaser.yml index 44e66d8f8..02a39830a 100644 --- a/config/sync/core.entity_view_display.node.go_category_page.list_teaser.yml +++ b/config/sync/core.entity_view_display.node.go_category.list_teaser.yml @@ -4,18 +4,18 @@ status: true dependencies: config: - core.entity_view_mode.node.list_teaser - - field.field.node.go_category_page.field_category_menu_color - - field.field.node.go_category_page.field_category_menu_image - - field.field.node.go_category_page.field_category_menu_sound - - field.field.node.go_category_page.field_category_menu_title - - field.field.node.go_category_page.field_paragraphs - - field.field.node.go_category_page.field_publication_date - - node.type.go_category_page + - 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_paragraphs + - field.field.node.go_category.field_publication_date + - node.type.go_category module: - user -id: node.go_category_page.list_teaser +id: node.go_category.list_teaser targetEntityType: node -bundle: go_category_page +bundle: go_category mode: list_teaser content: links: diff --git a/config/sync/core.entity_view_display.node.go_category_page.nav_spot.yml b/config/sync/core.entity_view_display.node.go_category.nav_spot.yml similarity index 53% rename from config/sync/core.entity_view_display.node.go_category_page.nav_spot.yml rename to config/sync/core.entity_view_display.node.go_category.nav_spot.yml index 42824f279..cad274e6c 100644 --- a/config/sync/core.entity_view_display.node.go_category_page.nav_spot.yml +++ b/config/sync/core.entity_view_display.node.go_category.nav_spot.yml @@ -4,18 +4,18 @@ status: true dependencies: config: - core.entity_view_mode.node.nav_spot - - field.field.node.go_category_page.field_category_menu_color - - field.field.node.go_category_page.field_category_menu_image - - field.field.node.go_category_page.field_category_menu_sound - - field.field.node.go_category_page.field_category_menu_title - - field.field.node.go_category_page.field_paragraphs - - field.field.node.go_category_page.field_publication_date - - node.type.go_category_page + - 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_paragraphs + - field.field.node.go_category.field_publication_date + - node.type.go_category module: - user -id: node.go_category_page.nav_spot +id: node.go_category.nav_spot targetEntityType: node -bundle: go_category_page +bundle: go_category mode: nav_spot content: links: diff --git a/config/sync/core.entity_view_display.node.go_category_page.teaser.yml b/config/sync/core.entity_view_display.node.go_category.teaser.yml similarity index 53% rename from config/sync/core.entity_view_display.node.go_category_page.teaser.yml rename to config/sync/core.entity_view_display.node.go_category.teaser.yml index 1db6f8d69..84b0bc5e3 100644 --- a/config/sync/core.entity_view_display.node.go_category_page.teaser.yml +++ b/config/sync/core.entity_view_display.node.go_category.teaser.yml @@ -4,18 +4,18 @@ status: true dependencies: config: - core.entity_view_mode.node.teaser - - field.field.node.go_category_page.field_category_menu_color - - field.field.node.go_category_page.field_category_menu_image - - field.field.node.go_category_page.field_category_menu_sound - - field.field.node.go_category_page.field_category_menu_title - - field.field.node.go_category_page.field_paragraphs - - field.field.node.go_category_page.field_publication_date - - node.type.go_category_page + - 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_paragraphs + - field.field.node.go_category.field_publication_date + - node.type.go_category module: - user -id: node.go_category_page.teaser +id: node.go_category.teaser targetEntityType: node -bundle: go_category_page +bundle: go_category mode: teaser content: links: diff --git a/config/sync/field.field.node.go_category_page.field_category_menu_color.yml b/config/sync/field.field.node.go_category.field_category_menu_color.yml similarity index 78% rename from config/sync/field.field.node.go_category_page.field_category_menu_color.yml rename to config/sync/field.field.node.go_category.field_category_menu_color.yml index 686e4dd33..c5392c0f5 100644 --- a/config/sync/field.field.node.go_category_page.field_category_menu_color.yml +++ b/config/sync/field.field.node.go_category.field_category_menu_color.yml @@ -4,13 +4,13 @@ status: true dependencies: config: - field.storage.node.field_category_menu_color - - node.type.go_category_page + - node.type.go_category module: - color_field -id: node.go_category_page.field_category_menu_color +id: node.go_category.field_category_menu_color field_name: field_category_menu_color entity_type: node -bundle: go_category_page +bundle: go_category label: 'Category menu color' description: '' required: true diff --git a/config/sync/field.field.node.go_category_page.field_category_menu_image.yml b/config/sync/field.field.node.go_category.field_category_menu_image.yml similarity index 85% rename from config/sync/field.field.node.go_category_page.field_category_menu_image.yml rename to config/sync/field.field.node.go_category.field_category_menu_image.yml index bc2a119b4..3508fa1a7 100644 --- a/config/sync/field.field.node.go_category_page.field_category_menu_image.yml +++ b/config/sync/field.field.node.go_category.field_category_menu_image.yml @@ -5,11 +5,11 @@ dependencies: config: - field.storage.node.field_category_menu_image - media.type.image - - node.type.go_category_page -id: node.go_category_page.field_category_menu_image + - node.type.go_category +id: node.go_category.field_category_menu_image field_name: field_category_menu_image entity_type: node -bundle: go_category_page +bundle: go_category label: 'Category menu image' description: "The category image will be shown in the category menu as part of this category's menu element." required: true diff --git a/config/sync/field.field.node.go_category_page.field_category_menu_sound.yml b/config/sync/field.field.node.go_category.field_category_menu_sound.yml similarity index 86% rename from config/sync/field.field.node.go_category_page.field_category_menu_sound.yml rename to config/sync/field.field.node.go_category.field_category_menu_sound.yml index 9f988508f..d8ca559f8 100644 --- a/config/sync/field.field.node.go_category_page.field_category_menu_sound.yml +++ b/config/sync/field.field.node.go_category.field_category_menu_sound.yml @@ -5,11 +5,11 @@ dependencies: config: - field.storage.node.field_category_menu_sound - media.type.audio - - node.type.go_category_page -id: node.go_category_page.field_category_menu_sound + - node.type.go_category +id: node.go_category.field_category_menu_sound field_name: field_category_menu_sound entity_type: node -bundle: go_category_page +bundle: go_category label: 'Category menu sound' description: "The category sound will be able to be played in the category menu as part of this category's menu element." required: false diff --git a/config/sync/field.field.node.go_category_page.field_category_menu_title.yml b/config/sync/field.field.node.go_category.field_category_menu_title.yml similarity index 80% rename from config/sync/field.field.node.go_category_page.field_category_menu_title.yml rename to config/sync/field.field.node.go_category.field_category_menu_title.yml index e54eb6623..a48be6688 100644 --- a/config/sync/field.field.node.go_category_page.field_category_menu_title.yml +++ b/config/sync/field.field.node.go_category.field_category_menu_title.yml @@ -4,11 +4,11 @@ status: true dependencies: config: - field.storage.node.field_category_menu_title - - node.type.go_category_page -id: node.go_category_page.field_category_menu_title + - node.type.go_category +id: node.go_category.field_category_menu_title field_name: field_category_menu_title entity_type: node -bundle: go_category_page +bundle: go_category label: 'Category menu title' description: "The category title will be shown in the category menu as part of this category's menu element." required: true diff --git a/config/sync/field.field.node.go_category_page.field_paragraphs.yml b/config/sync/field.field.node.go_category.field_paragraphs.yml similarity index 96% rename from config/sync/field.field.node.go_category_page.field_paragraphs.yml rename to config/sync/field.field.node.go_category.field_paragraphs.yml index 49e3a6134..d85c8b36c 100644 --- a/config/sync/field.field.node.go_category_page.field_paragraphs.yml +++ b/config/sync/field.field.node.go_category.field_paragraphs.yml @@ -4,14 +4,14 @@ status: true dependencies: config: - field.storage.node.field_paragraphs - - node.type.go_category_page + - node.type.go_category - paragraphs.paragraphs_type.go_video module: - entity_reference_revisions -id: node.go_category_page.field_paragraphs +id: node.go_category.field_paragraphs field_name: field_paragraphs entity_type: node -bundle: go_category_page +bundle: go_category label: Paragraphs description: '' required: false diff --git a/config/sync/field.field.node.go_category_page.field_publication_date.yml b/config/sync/field.field.node.go_category.field_publication_date.yml similarity index 79% rename from config/sync/field.field.node.go_category_page.field_publication_date.yml rename to config/sync/field.field.node.go_category.field_publication_date.yml index a3838aa74..6c55243f9 100644 --- a/config/sync/field.field.node.go_category_page.field_publication_date.yml +++ b/config/sync/field.field.node.go_category.field_publication_date.yml @@ -4,13 +4,13 @@ status: true dependencies: config: - field.storage.node.field_publication_date - - node.type.go_category_page + - node.type.go_category module: - datetime -id: node.go_category_page.field_publication_date +id: node.go_category.field_publication_date field_name: field_publication_date entity_type: node -bundle: go_category_page +bundle: go_category label: 'Publication date' description: '' required: true diff --git a/config/sync/graphql_compose.settings.yml b/config/sync/graphql_compose.settings.yml index d641beb67..b04238033 100644 --- a/config/sync/graphql_compose.settings.yml +++ b/config/sync/graphql_compose.settings.yml @@ -18,7 +18,7 @@ entity_config: enabled: false campaign: enabled: false - go_category_page: + go_category: enabled: true query_load_enabled: true routes_enabled: true @@ -142,7 +142,7 @@ field_config: enabled: true field_teaser_text: enabled: true - go_category_page: + go_category: field_category_menu_color: enabled: true field_category_menu_image: diff --git a/config/sync/language.content_settings.node.go_category_page.yml b/config/sync/language.content_settings.node.go_category.yml similarity index 64% rename from config/sync/language.content_settings.node.go_category_page.yml rename to config/sync/language.content_settings.node.go_category.yml index ba15d869a..ec71af189 100644 --- a/config/sync/language.content_settings.node.go_category_page.yml +++ b/config/sync/language.content_settings.node.go_category.yml @@ -3,9 +3,9 @@ langcode: en status: true dependencies: config: - - node.type.go_category_page -id: node.go_category_page + - node.type.go_category +id: node.go_category target_entity_type_id: node -target_bundle: go_category_page +target_bundle: go_category default_langcode: da language_alterable: false diff --git a/config/sync/node.type.go_category_page.yml b/config/sync/node.type.go_category.yml similarity index 95% rename from config/sync/node.type.go_category_page.yml rename to config/sync/node.type.go_category.yml index 5ff18b3f0..2808f4ff7 100644 --- a/config/sync/node.type.go_category_page.yml +++ b/config/sync/node.type.go_category.yml @@ -25,8 +25,8 @@ third_party_settings: unpublish_enable: true unpublish_required: false unpublish_revision: false -name: 'GO category page' -type: go_category_page +name: 'GO category' +type: go_category description: "GO category pages will be used for creating a \"landingpage\" for specific categories. \r\nWhen creating and publishing a new category page, the category will automatically be added to the category menu." help: null new_revision: false diff --git a/config/sync/simple_sitemap.bundle_settings.default.node.go_category_page.yml b/config/sync/simple_sitemap.bundle_settings.default.node.go_category.yml similarity index 100% rename from config/sync/simple_sitemap.bundle_settings.default.node.go_category_page.yml rename to config/sync/simple_sitemap.bundle_settings.default.node.go_category.yml diff --git a/config/sync/user.role.go_editor.yml b/config/sync/user.role.go_editor.yml index 37865c89a..67b593613 100644 --- a/config/sync/user.role.go_editor.yml +++ b/config/sync/user.role.go_editor.yml @@ -10,7 +10,7 @@ dependencies: - media.type.document - media.type.image - media.type.video - - node.type.go_category_page + - node.type.go_category - node.type.go_page - node.type.page module: @@ -50,7 +50,7 @@ permissions: - 'clone node entity' - 'create audio media' - 'create document media' - - 'create go_category_page content' + - 'create go_category content' - 'create go_page content' - 'create image media' - 'create media' @@ -58,36 +58,36 @@ permissions: - 'delete all revisions' - 'delete any audio media' - 'delete any document media' - - 'delete any go_category_page content' + - 'delete any go_category content' - 'delete any go_page content' - 'delete any image media' - 'delete any media' - 'delete any video media' - - 'delete go_category_page revisions' + - 'delete go_category revisions' - 'delete go_page revisions' - 'delete media' - 'delete own audio media' - 'delete own document media' - 'delete own files' - - 'delete own go_category_page content' + - 'delete own go_category content' - 'delete own go_page content' - 'delete own image media' - 'delete own video media' - 'dpl admin access pages' - 'edit any audio media' - 'edit any document media' - - 'edit any go_category_page content' + - 'edit any go_category content' - 'edit any go_page content' - 'edit any image media' - 'edit any video media' - 'edit own audio media' - 'edit own document media' - - 'edit own go_category_page content' + - 'edit own go_category content' - 'edit own go_page content' - 'edit own image media' - 'edit own video media' - 'revert all revisions' - - 'revert go_category_page revisions' + - 'revert go_category revisions' - 'revert go_page revisions' - 'schedule publishing of eventseries' - 'schedule publishing of nodes' @@ -98,9 +98,9 @@ permissions: - 'use text format underlined_title' - 'view all media revisions' - 'view all revisions' - - 'view any unpublished go_category_page content' + - 'view any unpublished go_category content' - 'view any unpublished go_page content' - - 'view go_category_page revisions' + - 'view go_category revisions' - 'view go_page revisions' - 'view own unpublished content' - 'view own unpublished media'