Skip to content

Commit

Permalink
d8core-5741: taxonomy, part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
buttonwillowsix committed Aug 11, 2024
1 parent 67208c7 commit 260f510
Show file tree
Hide file tree
Showing 7 changed files with 180 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
28 changes: 28 additions & 0 deletions config/sync/taxonomy.vocabulary.opportunity_sponsor.yml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 25 additions & 0 deletions config/sync/taxonomy.vocabulary.opportunity_type.yml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions config/sync/user.role.opportunity_editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit 260f510

Please sign in to comment.