Skip to content
Snippets Groups Projects
Commit 12b24345 authored by Chris Shantz's avatar Chris Shantz
Browse files

Merge branch '1.0.x' into prod/1.0.x

parents 37aa7800 b4caa0cf
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ dependencies:
- field.field.node.uw_ct_profile.field_uw_ct_profile_contact
- field.field.node.uw_ct_profile.field_uw_ct_profile_image
- field.field.node.uw_ct_profile.field_uw_ct_profile_info_link
- field.field.node.uw_ct_profile.field_uw_ct_profile_link_contact
- field.field.node.uw_ct_profile.field_uw_ct_profile_link_persona
- field.field.node.uw_ct_profile.field_uw_ct_profile_sort_name
- field.field.node.uw_ct_profile.field_uw_ct_profile_title
......@@ -23,6 +24,8 @@ dependencies:
- media_library
- metatag
- path
- scheduler
- scheduler_content_moderation_integration
- text
third_party_settings:
field_group:
......@@ -34,7 +37,7 @@ third_party_settings:
label: 'Meta tag information for social media sharing/search/etc.'
region: content
parent_name: ''
weight: 18
weight: 19
format_type: details
format_settings:
classes: ''
......@@ -87,6 +90,17 @@ content:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
field_uw_ct_profile_link_contact:
type: link_default
weight: 17
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings:
maxlength:
maxlength_js: null
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
field_uw_ct_profile_link_persona:
type: link_default
weight: 16
......@@ -113,7 +127,7 @@ content:
third_party_settings: { }
field_uw_ct_profile_type:
type: autocomplete_deluxe
weight: 17
weight: 18
region: content
settings:
match_operator: CONTAINS
......@@ -189,6 +203,23 @@ content:
settings:
display_label: true
third_party_settings: { }
publish_on:
type: datetime_timestamp_no_default
weight: 30
region: content
settings: { }
third_party_settings: { }
publish_state:
type: scheduler_moderation
weight: 30
region: content
settings: { }
third_party_settings: { }
scheduler_settings:
weight: 20
settings: { }
third_party_settings: { }
region: content
status:
type: boolean_checkbox
weight: 9
......@@ -221,8 +252,20 @@ content:
size: 60
placeholder: ''
third_party_settings: { }
unpublish_on:
type: datetime_timestamp_no_default
weight: 30
region: content
settings: { }
third_party_settings: { }
unpublish_state:
type: scheduler_moderation
weight: 30
region: content
settings: { }
third_party_settings: { }
url_redirects:
weight: 19
weight: 20
region: content
settings: { }
third_party_settings: { }
......
......@@ -6,6 +6,7 @@ dependencies:
- field.field.node.uw_ct_profile.field_uw_ct_profile_contact
- field.field.node.uw_ct_profile.field_uw_ct_profile_image
- field.field.node.uw_ct_profile.field_uw_ct_profile_info_link
- field.field.node.uw_ct_profile.field_uw_ct_profile_link_contact
- field.field.node.uw_ct_profile.field_uw_ct_profile_link_persona
- field.field.node.uw_ct_profile.field_uw_ct_profile_sort_name
- field.field.node.uw_ct_profile.field_uw_ct_profile_title
......@@ -26,8 +27,8 @@ dependencies:
- uw_cfg_common
third_party_settings:
layout_builder:
allow_custom: true
enabled: true
allow_custom: true
sections:
-
layout_id: uw_1_column
......@@ -45,8 +46,6 @@ third_party_settings:
layout_builder_restrictions:
allowed_block_categories: { }
entity_view_mode_restriction:
whitelisted_blocks: { }
blacklisted_blocks: { }
allowed_layouts:
- uw_1_column
- uw_2_column
......@@ -54,43 +53,45 @@ third_party_settings:
- uw_4_column
- uw_inverted_l_right
- uw_inverted_l_left
blacklisted_blocks: { }
whitelisted_blocks: { }
id: node.uw_ct_profile.default
targetEntityType: node
bundle: uw_ct_profile
mode: default
content:
content_moderation_control:
weight: -20
settings: { }
third_party_settings: { }
weight: -20
region: content
field_uw_ct_profile_affiliation:
weight: 104
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
weight: 104
region: content
field_uw_ct_profile_contact:
weight: 101
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
type: entity_reference_label
weight: 101
region: content
field_uw_ct_profile_image:
type: entity_reference_entity_view
weight: 103
label: above
settings:
view_mode: default
link: false
third_party_settings: { }
weight: 103
region: content
field_uw_ct_profile_info_link:
weight: 106
type: link
label: above
settings:
trim_length: 80
......@@ -99,10 +100,10 @@ content:
rel: ''
target: ''
third_party_settings: { }
type: link
weight: 106
region: content
field_uw_ct_profile_link_persona:
weight: 107
field_uw_ct_profile_link_contact:
type: link
label: above
settings:
trim_length: 80
......@@ -111,65 +112,77 @@ content:
rel: ''
target: ''
third_party_settings: { }
weight: 113
region: first
field_uw_ct_profile_link_persona:
type: link
label: above
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
weight: 107
region: content
field_uw_ct_profile_sort_name:
weight: 102
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
weight: 102
region: content
field_uw_ct_profile_title:
weight: 105
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
weight: 105
region: content
field_uw_ct_profile_type:
weight: 108
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
type: entity_reference_label
weight: 108
region: content
field_uw_meta_description:
weight: 111
type: basic_string
label: above
settings: { }
third_party_settings: { }
type: basic_string
weight: 111
region: content
field_uw_meta_image:
weight: 110
type: entity_reference_label
label: above
settings:
link: true
third_party_settings: { }
type: entity_reference_label
weight: 110
region: content
field_uw_meta_tags:
weight: 109
type: metatag_empty_formatter
label: above
settings: { }
third_party_settings: { }
type: metatag_empty_formatter
weight: 109
region: content
field_uw_profile_summary:
weight: 112
type: text_default
label: above
settings: { }
third_party_settings: { }
type: text_default
weight: 112
region: content
links:
weight: 100
settings: { }
third_party_settings: { }
weight: 100
region: content
hidden:
langcode: true
......
......@@ -7,6 +7,7 @@ dependencies:
- field.field.node.uw_ct_profile.field_uw_ct_profile_contact
- field.field.node.uw_ct_profile.field_uw_ct_profile_image
- field.field.node.uw_ct_profile.field_uw_ct_profile_info_link
- field.field.node.uw_ct_profile.field_uw_ct_profile_link_contact
- field.field.node.uw_ct_profile.field_uw_ct_profile_link_persona
- field.field.node.uw_ct_profile.field_uw_ct_profile_sort_name
- field.field.node.uw_ct_profile.field_uw_ct_profile_title
......@@ -29,12 +30,10 @@ mode: teaser
content:
field_uw_ct_profile_image:
type: media_thumbnail
weight: 0
region: content
label: hidden
settings:
image_style: thumbnail
image_link: ''
image_style: thumbnail
third_party_settings:
fences:
fences_field_tag: div
......@@ -43,26 +42,29 @@ content:
fences_field_item_classes: ''
fences_label_tag: div
fences_label_classes: ''
weight: 0
region: content
field_uw_ct_profile_title:
type: string
weight: 1
region: content
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: 1
region: content
field_uw_meta_description:
type: basic_string
weight: 2
region: content
label: inline
settings: { }
third_party_settings: { }
weight: 2
region: content
hidden:
content_moderation_control: true
field_uw_ct_profile_affiliation: true
field_uw_ct_profile_contact: true
field_uw_ct_profile_info_link: true
field_uw_ct_profile_link_contact: true
field_uw_ct_profile_link_persona: true
field_uw_ct_profile_sort_name: true
field_uw_ct_profile_type: true
......
......@@ -14,8 +14,8 @@ id: node.uw_ct_profile.field_uw_ct_profile_contact
field_name: field_uw_ct_profile_contact
entity_type: node
bundle: uw_ct_profile
label: 'Link with contact'
description: 'Optionally link this profile to a contact, so that initial information is provided by and updated with that contact.'
label: 'Synchronize with contact'
description: 'Optionally synchronize this profile with a contact, so that initial information is provided by and updated with that contact.'
required: false
translatable: false
default_value: { }
......
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_uw_ct_profile_link_contact
- node.type.uw_ct_profile
module:
- link
- link_field_autocomplete_filter
third_party_settings:
link_field_autocomplete_filter:
negate: null
allowed_content_types:
uw_ct_contact: uw_ct_contact
uw_ct_profile: '0'
uw_ct_blog: '0'
uw_ct_catalog_item: '0'
uw_ct_event: '0'
uw_ct_news_item: '0'
uw_ct_opportunity: '0'
uw_ct_service: '0'
uw_ct_sidebar: '0'
uw_ct_site_footer: '0'
uw_ct_web_page: '0'
id: node.uw_ct_profile.field_uw_ct_profile_link_contact
field_name: field_uw_ct_profile_link_contact
entity_type: node
bundle: uw_ct_profile
label: 'Link to contact'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
title: 0
link_type: 1
field_type: link
langcode: en
status: true
dependencies:
module:
- link
- node
id: node.field_uw_ct_profile_link_contact
field_name: field_uw_ct_profile_link_contact
entity_type: node
type: link
settings: { }
module: link
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
......@@ -5,6 +5,7 @@ dependencies:
- entity_browser_block_layout
- menu_ui
- node_revision_delete
- scheduler
third_party_settings:
entity_browser_block_layout:
entity_browser_block_layout_view_modes:
......@@ -25,6 +26,19 @@ third_party_settings:
minimum_revisions_to_keep: 50
minimum_age_to_delete: 0
when_to_delete: 0
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: true
publish_touch: true
show_message_after_update: true
unpublish_enable: true
unpublish_required: false
unpublish_revision: true
name: Profile
type: uw_ct_profile
description: 'A profile, which can be optionally added to pages and appears under the "Profiles" section of your site.'
......
name: UW Profile
name: 'UW Profile'
description: 'Add featured people profiles.'
type: module
package: WCMS
......@@ -26,9 +26,12 @@ dependencies:
- 'fences:fences'
- 'field_group:field_group'
- 'layout_builder_restrictions:layout_builder_restrictions'
- 'link_field_autocomplete_filter:link_field_autocomplete_filter'
- 'metatag:metatag'
- 'node_revision_delete:node_revision_delete'
- 'require_on_publish:require_on_publish'
- 'scheduler:scheduler'
- 'scheduler_content_moderation_integration:scheduler_content_moderation_integration'
- 'simple_sitemap:simple_sitemap'
- 'uw_cfg_common:uw_cfg_common'
- 'uw_ct_contact:uw_ct_contact'
......
......@@ -19,14 +19,16 @@ function uw_ct_profile_form_node_uw_ct_profile_form_alter(&$form, FormStateInter
'wrapper' => $form['#id'],
];
// Apply readonly to fields only when link with contact field has contact
// entity referenced.
// Apply readonly to fields only when Synchronize with
// contact field has contactentity referenced.
if (!empty($form_state->getValue('field_uw_ct_profile_contact')[0]['target_id']) ||
!empty($form['field_uw_ct_profile_contact']['widget'][0]['target_id']['#default_value'])) {
foreach (_uw_ct_profile_alter_fields() as $profile_field => $contact_field) {
$form[$profile_field]['widget'][0]['value']['#attributes']['readonly'] = 'readonly';
}
}
// Modify help text of Link to contact field.
$form['field_uw_ct_profile_link_contact']['widget'][0]['uri']['#description'] = t('Start typing the title of a piece of content to select it. You can also enter an internal path such as <em>/blog</em>.');
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment