From 260f5104c1cffc6c7d6ce038c18bec4292611b5c Mon Sep 17 00:00:00 2001 From: Dena DeBry Date: Sat, 10 Aug 2024 20:12:08 -0700 Subject: [PATCH] d8core-5741: taxonomy, part 1 --- ...onomy_term.opportunity_sponsor.default.yml | 46 +++++++++++++++++++ ...taxonomy_term.opportunity_type.default.yml | 46 +++++++++++++++++++ ...axonomy_vocabulary_opportunity_sponsor.yml | 14 ++++++ ...s.taxonomy_vocabulary_opportunity_type.yml | 14 ++++++ ...axonomy.vocabulary.opportunity_sponsor.yml | 28 +++++++++++ .../taxonomy.vocabulary.opportunity_type.yml | 25 ++++++++++ config/sync/user.role.opportunity_editor.yml | 7 +++ 7 files changed, 180 insertions(+) create mode 100644 config/sync/core.entity_form_display.taxonomy_term.opportunity_sponsor.default.yml create mode 100644 config/sync/core.entity_form_display.taxonomy_term.opportunity_type.default.yml create mode 100644 config/sync/rabbit_hole.behavior_settings.taxonomy_vocabulary_opportunity_sponsor.yml create mode 100644 config/sync/rabbit_hole.behavior_settings.taxonomy_vocabulary_opportunity_type.yml create mode 100644 config/sync/taxonomy.vocabulary.opportunity_sponsor.yml create mode 100644 config/sync/taxonomy.vocabulary.opportunity_type.yml diff --git a/config/sync/core.entity_form_display.taxonomy_term.opportunity_sponsor.default.yml b/config/sync/core.entity_form_display.taxonomy_term.opportunity_sponsor.default.yml new file mode 100644 index 000000000..1c839bdfa --- /dev/null +++ b/config/sync/core.entity_form_display.taxonomy_term.opportunity_sponsor.default.yml @@ -0,0 +1,46 @@ +uuid: e4ab5585-8659-475d-b0ef-e13de49bfd51 +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.opportunity_sponsor + module: + - path + - text +id: taxonomy_term.opportunity_sponsor.default +targetEntityType: taxonomy_term +bundle: opportunity_sponsor +mode: default +content: + description: + type: text_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + 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: { } +hidden: + publish_on: true + unpublish_on: true diff --git a/config/sync/core.entity_form_display.taxonomy_term.opportunity_type.default.yml b/config/sync/core.entity_form_display.taxonomy_term.opportunity_type.default.yml new file mode 100644 index 000000000..72387891d --- /dev/null +++ b/config/sync/core.entity_form_display.taxonomy_term.opportunity_type.default.yml @@ -0,0 +1,46 @@ +uuid: b025974f-fcbb-4c26-854b-0136cf511ecf +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.opportunity_type + module: + - path + - text +id: taxonomy_term.opportunity_type.default +targetEntityType: taxonomy_term +bundle: opportunity_type +mode: default +content: + description: + type: text_textfield + weight: 0 + region: content + settings: + size: 60 + placeholder: '' + 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: { } +hidden: + publish_on: true + unpublish_on: true diff --git a/config/sync/rabbit_hole.behavior_settings.taxonomy_vocabulary_opportunity_sponsor.yml b/config/sync/rabbit_hole.behavior_settings.taxonomy_vocabulary_opportunity_sponsor.yml new file mode 100644 index 000000000..f03fec0d4 --- /dev/null +++ b/config/sync/rabbit_hole.behavior_settings.taxonomy_vocabulary_opportunity_sponsor.yml @@ -0,0 +1,14 @@ +uuid: 7c6683e3-37ed-4976-819b-78d7f756afca +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.opportunity_sponsor +id: taxonomy_vocabulary_opportunity_sponsor +entity_type_id: taxonomy_vocabulary +entity_id: opportunity_sponsor +action: display_page +allow_override: 1 +redirect: '' +redirect_code: 301 +redirect_fallback_action: access_denied diff --git a/config/sync/rabbit_hole.behavior_settings.taxonomy_vocabulary_opportunity_type.yml b/config/sync/rabbit_hole.behavior_settings.taxonomy_vocabulary_opportunity_type.yml new file mode 100644 index 000000000..cc3d469e3 --- /dev/null +++ b/config/sync/rabbit_hole.behavior_settings.taxonomy_vocabulary_opportunity_type.yml @@ -0,0 +1,14 @@ +uuid: f1250e24-f5b7-43b9-bf1c-d23d47017cf3 +langcode: en +status: true +dependencies: + config: + - taxonomy.vocabulary.opportunity_type +id: taxonomy_vocabulary_opportunity_type +entity_type_id: taxonomy_vocabulary +entity_id: opportunity_type +action: display_page +allow_override: 1 +redirect: '' +redirect_code: 301 +redirect_fallback_action: access_denied diff --git a/config/sync/taxonomy.vocabulary.opportunity_sponsor.yml b/config/sync/taxonomy.vocabulary.opportunity_sponsor.yml new file mode 100644 index 000000000..0d994f10e --- /dev/null +++ b/config/sync/taxonomy.vocabulary.opportunity_sponsor.yml @@ -0,0 +1,28 @@ +uuid: a25a0776-532d-4f89-8323-567840c66a36 +langcode: en +status: true +dependencies: + module: + - flat_taxonomy + - scheduler +third_party_settings: + flat_taxonomy: + flat: 1 + 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 +name: 'Opportunity Sponsor' +vid: opportunity_sponsor +description: null +weight: 0 +new_revision: false diff --git a/config/sync/taxonomy.vocabulary.opportunity_type.yml b/config/sync/taxonomy.vocabulary.opportunity_type.yml new file mode 100644 index 000000000..a387b42c0 --- /dev/null +++ b/config/sync/taxonomy.vocabulary.opportunity_type.yml @@ -0,0 +1,25 @@ +uuid: 3764a55a-d05f-42ca-96c8-3a0e6769a755 +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 +name: 'Opportunity Type' +vid: opportunity_type +description: null +weight: 0 +new_revision: false diff --git a/config/sync/user.role.opportunity_editor.yml b/config/sync/user.role.opportunity_editor.yml index 4ef9146ee..3523948d5 100644 --- a/config/sync/user.role.opportunity_editor.yml +++ b/config/sync/user.role.opportunity_editor.yml @@ -4,9 +4,12 @@ status: true dependencies: config: - node.type.stanford_opportunity + - taxonomy.vocabulary.opportunity_sponsor + - taxonomy.vocabulary.opportunity_type module: - node - role_delegation + - taxonomy - view_unpublished id: opportunity_editor label: 'Opportunity Editor' @@ -15,9 +18,13 @@ is_admin: null permissions: - 'assign opportunity_editor role' - 'create stanford_opportunity content' + - 'create terms in opportunity_sponsor' + - 'create terms in opportunity_type' - 'delete any stanford_opportunity content' - 'delete own stanford_opportunity content' - 'delete stanford_opportunity revisions' + - 'delete terms in opportunity_sponsor' + - 'delete terms in opportunity_type' - 'edit any stanford_opportunity content' - 'edit own stanford_opportunity content' - 'revert stanford_opportunity revisions'