Skip to content

Commit

Permalink
Restrict accordion answer body and fix contact information redirect l…
Browse files Browse the repository at this point in the history
…ogic
  • Loading branch information
pookmish committed Nov 14, 2024
1 parent a0610a1 commit a32efc1
Show file tree
Hide file tree
Showing 25 changed files with 69 additions and 121 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"drupal/linkit": "^6.0",
"drupal/markup": "^2.0",
"drupal/mathjax": "^4.0",
"drupal/maxlength": "^3.1",
"drupal/menu_admin_per_menu": "^1.0",
"drupal/menu_block": "^1.10",
"drupal/menu_link_weight": "^2.0@alpha",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,20 +273,9 @@ content:
granularity: 2
refresh: 60
description: ''
formatter_third_party_settings:
empty_fields:
handler: ''
field_formatter_class:
class: ''
field_label:
label_value: ''
label_tag: ''
formatter_third_party_settings: { }
show_description: false
third_party_settings:
field_formatter_class:
class: ''
change_labels:
field_label_overwrite: ''
third_party_settings: { }
su_site_dropdowns:
type: boolean_checkbox
weight: 5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@ content:
region: content
settings:
modal: false
default_tz: user
custom_tz: America/Los_Angeles
allowed_timezones: { }
default_duration: 60
default_duration_increments: |-
30
Expand All @@ -227,6 +224,9 @@ content:
custom
show_extra: false
hide_date: true
default_tz: user
custom_tz: America/Los_Angeles
allowed_timezones: { }
add_abbreviations: ''
third_party_settings: { }
su_event_dek:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,7 @@ content:
nesting_depth: 0
require_layouts: 1
empty_message: ''
third_party_settings:
field_formatter_class:
class: ''
change_labels:
add_another: ''
field_label_overwrite: ''
hide_add_another: 0
force_single_cardinality: 0
third_party_settings: { }
su_opp_contact_email:
type: email_default
weight: 16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ dependencies:
- field.field.node.stanford_person.su_shared_tags
- node.type.stanford_person
module:
- allowed_formats
- change_labels
- cshs
- field_group
Expand Down Expand Up @@ -146,10 +145,7 @@ content:
summary_rows: 3
placeholder: ''
show_summary: false
third_party_settings:
allowed_formats:
hide_help: '0'
hide_guidelines: '0'
third_party_settings: { }
field_menulink:
type: menu_link_default
weight: 53
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ dependencies:
- field.field.node.stanford_policy.su_policy_updated
- node.type.stanford_policy
module:
- allowed_formats
- datetime
- field_group
- inline_entity_form
Expand Down Expand Up @@ -61,10 +60,7 @@ content:
summary_rows: 3
placeholder: ''
show_summary: true
third_party_settings:
allowed_formats:
hide_help: '0'
hide_guidelines: '0'
third_party_settings: { }
field_menulink:
type: menu_link_default
weight: 53
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ dependencies:
- field.field.paragraph.stanford_accordion.su_accordion_title
- paragraphs.paragraphs_type.stanford_accordion
module:
- change_labels
- field_formatter_class
- maxlength
- text
id: paragraph.stanford_accordion.default
targetEntityType: paragraph
Expand All @@ -27,7 +30,13 @@ content:
settings:
rows: 5
placeholder: ''
third_party_settings: { }
third_party_settings:
maxlength:
maxlength_js: 1000
maxlength_js_label: 'Content limited to @limit characters, remaining: <strong>@remaining</strong>'
maxlength_js_enforce: true
change_labels:
field_label_overwrite: ''
su_accordion_title:
type: string_textfield
weight: 0
Expand Down
2 changes: 1 addition & 1 deletion config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ module:
address: 0
admin_toolbar: 0
admin_toolbar_tools: 0
allowed_formats: 0
autologout: 0
basic_auth: 0
block: 0
Expand Down Expand Up @@ -121,6 +120,7 @@ module:
linkit: 0
markup: 0
mathjax: 0
maxlength: 0
media: 0
media_duplicate_validation: 0
media_library: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ dependencies:
- config_pages.type.stanford_global_message
- field.storage.config_pages.su_global_msg_message
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
stanford_minimal_html: stanford_minimal_html
plain_text: plain_text
stanford_html: '0'
id: config_pages.stanford_global_message.su_global_msg_message
field_name: su_global_msg_message
entity_type: config_pages
Expand All @@ -24,5 +18,7 @@ translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats: { }
allowed_formats:
- stanford_minimal_html
- plain_text
field_type: text_long
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ dependencies:
- config_pages.type.stanford_local_footer
- field.storage.config_pages.su_local_foot_f_intro
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
stanford_html: '0'
stanford_minimal_html: '0'
plain_text: '0'
id: config_pages.stanford_local_footer.su_local_foot_f_intro
field_name: su_local_foot_f_intro
entity_type: config_pages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ dependencies:
- config_pages.type.stanford_super_footer
- field.storage.config_pages.su_super_foot_text
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
stanford_html: '0'
stanford_minimal_html: '0'
plain_text: '0'
id: config_pages.stanford_super_footer.su_super_foot_text
field_name: su_super_foot_text
entity_type: config_pages
Expand Down
2 changes: 1 addition & 1 deletion config/sync/field.field.media.file.field_media_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ settings:
handler_settings: { }
file_directory: media/file
file_extensions: 'txt rtf doc docx ppt pptx xls xlsx pdf'
max_filesize: ''
max_filesize: '10 MB'
description_field: false
field_type: file
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ dependencies:
- field.storage.node.su_person_location_address
- node.type.stanford_person
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
stanford_html: '0'
stanford_minimal_html: '0'
plain_text: '0'
id: node.stanford_person.su_person_location_address
field_name: su_person_location_address
entity_type: node
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,11 @@ status: true
dependencies:
config:
- field.storage.node.su_person_research
- filter.format.plain_text
- filter.format.stanford_minimal_html
- node.type.stanford_person
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
stanford_minimal_html: stanford_minimal_html
plain_text: plain_text
stanford_html: '0'
id: node.stanford_person.su_person_research
field_name: su_person_research
entity_type: node
Expand All @@ -24,5 +20,7 @@ translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats: { }
allowed_formats:
- stanford_minimal_html
- plain_text
field_type: text
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ status: true
dependencies:
config:
- field.storage.node.su_person_scholarly_interests
- filter.format.stanford_minimal_html
- node.type.stanford_person
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
stanford_minimal_html: stanford_minimal_html
stanford_html: '0'
plain_text: '0'
id: node.stanford_person.su_person_scholarly_interests
field_name: su_person_scholarly_interests
entity_type: node
Expand All @@ -24,5 +19,6 @@ translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats: { }
allowed_formats:
- stanford_minimal_html
field_type: text_long
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ status: true
dependencies:
config:
- field.storage.paragraph.su_accordion_body
- filter.format.stanford_minimal_html
- paragraphs.paragraphs_type.stanford_accordion
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
stanford_minimal_html: stanford_minimal_html
stanford_html: '0'
plain_text: '0'
id: paragraph.stanford_accordion.su_accordion_body
field_name: su_accordion_body
entity_type: paragraph
Expand All @@ -24,5 +19,6 @@ translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats: { }
allowed_formats:
- stanford_minimal_html
field_type: text_long
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@ dependencies:
- field.storage.paragraph.su_faq_description
- paragraphs.paragraphs_type.stanford_faq
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
stanford_limited_html: stanford_limited_html
stanford_html: '0'
stanford_minimal_html: '0'
plain_text: '0'
id: paragraph.stanford_faq.su_faq_description
field_name: su_faq_description
entity_type: paragraph
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@ status: true
dependencies:
config:
- field.storage.paragraph.su_schedule_description
- filter.format.stanford_minimal_html
- paragraphs.paragraphs_type.stanford_schedule
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
stanford_minimal_html: stanford_minimal_html
stanford_html: '0'
plain_text: '0'
id: paragraph.stanford_schedule.su_schedule_description
field_name: su_schedule_description
entity_type: paragraph
Expand All @@ -24,5 +19,6 @@ translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats: { }
allowed_formats:
- stanford_minimal_html
field_type: text_long
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ dependencies:
- field.storage.paragraph.su_wysiwyg_text
- paragraphs.paragraphs_type.stanford_wysiwyg
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
stanford_html: '0'
stanford_minimal_html: '0'
plain_text: '0'
id: paragraph.stanford_wysiwyg.su_wysiwyg_text
field_name: su_wysiwyg_text
entity_type: paragraph
Expand Down
10 changes: 5 additions & 5 deletions config/sync/paragraphs.paragraphs_type.stanford_faq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ dependencies:
content:
- 'file:file:f217e716-8074-4122-bd5c-7b0f05aef5a9'
module:
- layout_paragraphs
- jumpstart_ui
id: stanford_faq
label: 'FAQ - Accordion List'
icon_uuid: f217e716-8074-4122-bd5c-7b0f05aef5a9
icon_default: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAACj1JREFUeJzt3c+LHGUawPFvZmM2JK0xsAg5LBoPgkIcRbyJDsY1kWASSG4SQVwUc/PsJXgUb4mbHyL4D0hOinuIQQ/iwYuoRFnQePAQk6BIhGR0ZvbwBtJdb807neq3qt7p/n7gPfT01FPPdD3PVFd31VsgSZIkSZIkSZIkSZIkSZIkSZIkSZKm34YWY+8C/g38C/gnMGhxXZo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ricyL22Ij0bLq+km/K98OEYxQHN7dAP8cvfZMa1FCOZopyptjFNxziWtC/l1B1VjHWNmXoHuu4H6lv0mZ7u8+NrkFzQkZRv6tK8JvU+X1GtSaXZunE0/cppXK9qQnu1OfcaC3FLV3ReZ/VN7h0BAGwEzd7UH9drmtCDGsm924Votbd3VB9m/8dVmaOV3t5RzenJvjyqBlPy3t4OBZjrkri394n49PtORzWae3XFaK2392yM4/7cayxOK7293f8efzT36orUQm/vQpiSF6u1oLfXDme/l4tAzBCIGQIxQyBmCMQMgZghEDME0hu9vWbo7TVDb68Zenvt0Ntrht5eO/T2rmvQ2xt4xFGJ3t6A3l6zQOjtNQtk8NHba4feXjv09tqht9cOvb1m6O0dCJy5WC4CMUMgZgjEDIGYIRAzBGKGQMwQiBl6e9tHb68Zenut0NtrhN5e40FvrxV6e43Q22uD3l4AQB/R29smenstB729hujtNUNvrwV6ew3R22uH3l4z9Pba4ez3chGIGQIxQyBmCMQMgZghEDMEYoZAeqO31wy9vWbo7TVDb68denvN0Ntrh97edQ16ewOPOCrR2xvQ22sWCL29ZoEMPnp77dDba4feXjv09tqht9cMvb0DgTMXy0UgZgjEDIGYIRAzBGKGQMwQiBkCMUNvb/vo7TVDb68VenuN0NtrPOjttUJvrxF6e23Q2wsAAAAAAAAAAACgkX8AwDAVYMrdKpUAAAAASUVORK5CYII='
description: ''
behavior_plugins:
layout_paragraphs:
enabled: false
available_layouts: { }
faq_accordions:
enabled: true
heading: h2
Loading

0 comments on commit a32efc1

Please sign in to comment.