-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DIGITAL-200: Add resource topics vocab and terms
* Enable taxonomy module * Add taxonomy vocabulary for resource topics * Adds resource topic terms * Adds reference field for topics to point to one or more resource topics * Update existing topics to refer to a resource topic * Adds and themes view to display lists of topics grouped by resource topic.
- Loading branch information
Showing
31 changed files
with
743 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
config/sync/core.entity_form_display.taxonomy_term.resource_topics.default.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
uuid: 69a2b41e-b8b5-484c-99ff-aa177245cccf | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- taxonomy.vocabulary.resource_topics | ||
module: | ||
- path | ||
- text | ||
id: taxonomy_term.resource_topics.default | ||
targetEntityType: taxonomy_term | ||
bundle: resource_topics | ||
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 | ||
publish_state: true | ||
unpublish_on: true | ||
unpublish_state: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
config/sync/field.field.node.topics.field_resource_topics.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
uuid: 2e907097-408b-473f-8086-4fb7ba955204 | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- field.storage.node.field_resource_topics | ||
- node.type.topics | ||
- taxonomy.vocabulary.resource_topics | ||
id: node.topics.field_resource_topics | ||
field_name: field_resource_topics | ||
entity_type: node | ||
bundle: topics | ||
label: 'Resource Topics' | ||
description: '' | ||
required: false | ||
translatable: false | ||
default_value: { } | ||
default_value_callback: '' | ||
settings: | ||
handler: 'default:taxonomy_term' | ||
handler_settings: | ||
target_bundles: | ||
resource_topics: resource_topics | ||
sort: | ||
field: name | ||
direction: asc | ||
auto_create: false | ||
auto_create_bundle: '' | ||
field_type: entity_reference |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
uuid: 878b01e1-bec0-4d14-8adf-719997559c6d | ||
langcode: en | ||
status: true | ||
dependencies: | ||
module: | ||
- node | ||
- taxonomy | ||
id: node.field_resource_topics | ||
field_name: field_resource_topics | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
uuid: 315c759e-5dd2-4073-a98e-0224b63b9a27 | ||
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: 'Resource Topics' | ||
vid: resource_topics | ||
description: 'Used to categorize resources' | ||
weight: 0 | ||
new_revision: false |
Oops, something went wrong.