Skip to content

Commit

Permalink
Merge pull request #882 from unlcms/issue720-tagging
Browse files Browse the repository at this point in the history
Issue #720: General tagging on builder pages
  • Loading branch information
ericras authored Dec 6, 2024
2 parents 4fcfc08 + fcdd687 commit aa907d6
Show file tree
Hide file tree
Showing 28 changed files with 404 additions and 157 deletions.
13 changes: 13 additions & 0 deletions config/sync/core.entity_form_display.node.builder_page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- field.field.node.builder_page.layout_builder__layout
- field.field.node.builder_page.s_n_hero
- field.field.node.builder_page.s_n_page_options
- field.field.node.builder_page.s_n_site_organization_tags
- node.type.builder_page
- workflows.workflow.editorial
module:
Expand All @@ -15,12 +16,14 @@ dependencies:
- field_group
- inline_entity_form
- path
- select2
- text
third_party_settings:
field_group:
group_page_options:
children:
- s_n_page_options
- s_n_site_organization_tags
label: 'Page options'
region: content
parent_name: ''
Expand Down Expand Up @@ -110,6 +113,16 @@ content:
region: content
settings: { }
third_party_settings: { }
s_n_site_organization_tags:
type: select2_entity_reference
weight: 11
region: content
settings:
width: 100%
autocomplete: true
match_operator: CONTAINS
match_limit: 10
third_party_settings: { }
status:
type: boolean_checkbox
weight: 7
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- field.field.node.builder_page.layout_builder__layout
- field.field.node.builder_page.s_n_hero
- field.field.node.builder_page.s_n_page_options
- field.field.node.builder_page.s_n_site_organization_tags
- node.type.builder_page
- system.menu.main
module:
Expand Down Expand Up @@ -288,6 +289,14 @@ content:
third_party_settings: { }
weight: 102
region: first
s_n_site_organization_tags:
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
weight: 103
region: first
hidden:
entitygroupfield: true
layout_builder__layout: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- field.field.node.builder_page.layout_builder__layout
- field.field.node.builder_page.s_n_hero
- field.field.node.builder_page.s_n_page_options
- field.field.node.builder_page.s_n_site_organization_tags
- node.type.builder_page
module:
- entity_reference_revisions
Expand Down Expand Up @@ -204,3 +205,4 @@ hidden:
entitygroupfield: true
layout_builder__layout: true
s_n_page_options: true
s_n_site_organization_tags: true
18 changes: 6 additions & 12 deletions config/sync/core.entity_view_display.node.builder_page.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- field.field.node.builder_page.layout_builder__layout
- field.field.node.builder_page.s_n_hero
- field.field.node.builder_page.s_n_page_options
- field.field.node.builder_page.s_n_site_organization_tags
- node.type.builder_page
module:
- entity_reference_revisions
Expand All @@ -26,17 +27,7 @@ content:
settings:
trim_length: 600
third_party_settings: { }
weight: 2
region: content
content_moderation_control:
settings: { }
third_party_settings: { }
weight: -20
region: content
links:
settings: { }
third_party_settings: { }
weight: 0
weight: 1
region: content
s_n_hero:
type: entity_reference_revisions_entity_view
Expand All @@ -45,9 +36,12 @@ content:
view_mode: default
link: ''
third_party_settings: { }
weight: 1
weight: 0
region: content
hidden:
content_moderation_control: true
entitygroupfield: true
layout_builder__layout: true
links: true
s_n_page_options: true
s_n_site_organization_tags: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
uuid: c634ed85-3e54-43a3-b746-d030e2b65cb4
langcode: en
status: true
dependencies:
config:
- field.storage.node.s_n_site_organization_tags
- node.type.builder_page
- taxonomy.vocabulary.site_organization_tags
id: node.builder_page.s_n_site_organization_tags
field_name: s_n_site_organization_tags
entity_type: node
bundle: builder_page
label: 'Site organization tags'
description: 'Any tags added here will add this item to an aggregate page located at /tag/EXAMPLE-TAG-NAME.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:taxonomy_term'
handler_settings:
target_bundles:
site_organization_tags: site_organization_tags
sort:
field: name
direction: asc
auto_create: true
auto_create_bundle: ''
field_type: entity_reference
20 changes: 20 additions & 0 deletions config/sync/field.storage.node.s_n_site_organization_tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: 93b348a4-7465-4577-a0ae-a54f1d88c037
langcode: en
status: true
dependencies:
module:
- node
- taxonomy
id: node.s_n_site_organization_tags
field_name: s_n_site_organization_tags
entity_type: node
type: entity_reference
settings:
target_type: taxonomy_term
module: core
locked: false
cardinality: -1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
22 changes: 22 additions & 0 deletions config/sync/pathauto.pattern.taxonomy_tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: a72aaaa6-1cf8-4581-a826-800475fca75b
langcode: en
status: true
dependencies:
module:
- taxonomy
id: taxonomy_tags
label: 'Taxonomy: Tags'
type: 'canonical_entities:taxonomy_term'
pattern: 'tag/[term:name]'
selection_criteria:
18d54d51-5f83-499b-9597-50c87e32373a:
id: 'entity_bundle:taxonomy_term'
negate: false
uuid: 18d54d51-5f83-499b-9597-50c87e32373a
context_mapping:
taxonomy_term: taxonomy_term
bundles:
site_organization_tags: site_organization_tags
selection_logic: and
weight: -5
relationships: { }
8 changes: 8 additions & 0 deletions config/sync/taxonomy.vocabulary.site_organization_tags.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: 02480ad1-bff1-4982-98f2-c2817c2edb80
langcode: en
status: true
dependencies: { }
name: 'Site organization tags'
vid: site_organization_tags
description: ''
weight: 0
4 changes: 4 additions & 0 deletions config/sync/user.role.administrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dependencies:
- node.type.person
- node.type.webform
- taxonomy.vocabulary.media_tags
- taxonomy.vocabulary.site_organization_tags
- workflows.workflow.editorial
module:
- administerusersbyrole
Expand Down Expand Up @@ -173,6 +174,7 @@ permissions:
- 'create tabs block content'
- 'create tandem block content'
- 'create terms in media_tags'
- 'create terms in site_organization_tags'
- 'create timeline block content'
- 'create unl_directory_entry external entity'
- 'create url aliases'
Expand Down Expand Up @@ -226,6 +228,7 @@ permissions:
- 'delete own webform submission'
- 'delete person revisions'
- 'delete terms in media_tags'
- 'delete terms in site_organization_tags'
- 'delete unl_directory_entry external entity'
- 'delete webform revisions'
- 'delete webform submissions any node'
Expand Down Expand Up @@ -253,6 +256,7 @@ permissions:
- 'edit own webform content'
- 'edit own webform submission'
- 'edit terms in media_tags'
- 'edit terms in site_organization_tags'
- 'edit users by role'
- 'edit users with role administrator'
- 'edit webform submissions any node'
Expand Down
2 changes: 2 additions & 0 deletions config/sync/user.role.editor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ dependencies:
- node.type.person
- node.type.webform
- taxonomy.vocabulary.media_tags
- taxonomy.vocabulary.site_organization_tags
- workflows.workflow.editorial
module:
- administerusersbyrole
Expand Down Expand Up @@ -96,6 +97,7 @@ permissions:
- 'create tabs block content'
- 'create tandem block content'
- 'create terms in media_tags'
- 'create terms in site_organization_tags'
- 'create timeline block content'
- 'create unl_directory_entry external entity'
- 'create webform'
Expand Down
4 changes: 4 additions & 0 deletions config/sync/user.role.site_admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dependencies:
- node.type.person
- node.type.webform
- taxonomy.vocabulary.media_tags
- taxonomy.vocabulary.site_organization_tags
- workflows.workflow.editorial
module:
- administerusersbyrole
Expand Down Expand Up @@ -121,6 +122,7 @@ permissions:
- 'create tabs block content'
- 'create tandem block content'
- 'create terms in media_tags'
- 'create terms in site_organization_tags'
- 'create timeline block content'
- 'create unl_directory_entry external entity'
- 'create url aliases'
Expand Down Expand Up @@ -173,6 +175,7 @@ permissions:
- 'delete own webform submission'
- 'delete person revisions'
- 'delete terms in media_tags'
- 'delete terms in site_organization_tags'
- 'delete unl_directory_entry external entity'
- 'delete webform revisions'
- 'delete webform submissions any node'
Expand Down Expand Up @@ -200,6 +203,7 @@ permissions:
- 'edit own webform content'
- 'edit own webform submission'
- 'edit terms in media_tags'
- 'edit terms in site_organization_tags'
- 'edit users by role'
- 'edit webform submissions any node'
- 'edit webform submissions own node'
Expand Down
Loading

0 comments on commit aa907d6

Please sign in to comment.