Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D8CORE-7661: Filtered List Paragraph #894

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
uuid: 34880d1d-0c7a-4499-bb16-eeb4a9978aa2
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.stanford_filtered_lists.su_filtered_list_view
- field.field.paragraph.stanford_filtered_lists.su_list_description
- field.field.paragraph.stanford_filtered_lists.su_list_headline
- paragraphs.paragraphs_type.stanford_filtered_lists
module:
- text
- viewfield
id: paragraph.stanford_filtered_lists.default
targetEntityType: paragraph
bundle: stanford_filtered_lists
mode: default
content:
su_filtered_list_view:
type: viewfield_select
weight: 3
region: content
settings: { }
third_party_settings: { }
su_list_description:
type: text_textarea
weight: 2
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
su_list_headline:
type: string_textfield
weight: 1
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hidden:
created: true
status: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
uuid: 51d03716-ac18-4a8d-9e00-69f1491ac1ab
langcode: en
status: true
dependencies:
config:
- field.field.paragraph.stanford_filtered_lists.su_filtered_list_view
- field.field.paragraph.stanford_filtered_lists.su_list_description
- field.field.paragraph.stanford_filtered_lists.su_list_headline
- paragraphs.paragraphs_type.stanford_filtered_lists
module:
- field_formatter_class
- stanford_fields
- text
- viewfield
id: paragraph.stanford_filtered_lists.default
targetEntityType: paragraph
bundle: stanford_filtered_lists
mode: default
content:
su_filtered_list_view:
type: viewfield_default
label: above
settings:
view_title: hidden
always_build_output: false
empty_view_title: hidden
third_party_settings: { }
weight: 2
region: content
su_list_description:
type: text_default
label: hidden
settings: { }
third_party_settings:
field_formatter_class:
class: su-margin-bottom-3
weight: 1
region: content
su_list_headline:
type: entity_title_heading
label: hidden
settings:
tag: h2
linked: false
third_party_settings:
field_formatter_class:
class: su-margin-bottom
weight: 0
region: content
hidden:
search_api_excerpt: true
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- paragraphs.paragraphs_type.stanford_card
- paragraphs.paragraphs_type.stanford_entity
- paragraphs.paragraphs_type.stanford_faq
- paragraphs.paragraphs_type.stanford_filtered_lists
- paragraphs.paragraphs_type.stanford_gallery
- paragraphs.paragraphs_type.stanford_layout
- paragraphs.paragraphs_type.stanford_lists
Expand Down Expand Up @@ -40,6 +41,7 @@ settings:
stanford_layout: stanford_layout
stanford_lists: stanford_lists
stanford_spacer: stanford_spacer
stanford_filtered_lists: stanford_filtered_lists
stanford_faq: stanford_faq
negate: 0
target_bundles_drag_drop:
Expand All @@ -58,6 +60,9 @@ settings:
stanford_faq:
weight: 28
enabled: true
stanford_filtered_lists:
weight: 21
enabled: true
stanford_gallery:
weight: -19
enabled: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
uuid: 51f63f1d-2406-4de9-9d75-ee4eb7eac4c3
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.su_filtered_list_view
- paragraphs.paragraphs_type.stanford_filtered_lists
module:
- viewfield
id: paragraph.stanford_filtered_lists.su_filtered_list_view
field_name: su_filtered_list_view
entity_type: paragraph
bundle: stanford_filtered_lists
label: 'Filtered List Format'
description: 'Main display options for items presented in the list view. Learn more in the guide to <a href="https://sitesuserguide.stanford.edu/build/paragraphs/filtered-lists-paragraph">Filtered Lists.</a>'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
force_default: false
allowed_views:
stanford_opportunities_filtered: stanford_opportunities_filtered
stanford_shared_tags: '0'
stanford_basic_pages: '0'
su_block_edit_links: '0'
change_logs: '0'
content: '0'
block_content: '0'
stanford_courses: '0'
editoria11y_dismissals: '0'
editoria11y_results: '0'
stanford_events: '0'
stanford_events_past: '0'
stanford_events_schedule: '0'
stanford_event_series: '0'
authmap: '0'
files: '0'
locked_content: '0'
manage_content: '0'
media: '0'
media_library: '0'
stanford_news: '0'
stanford_opportunities: '0'
duplicate_of_opportunities: '0'
stanford_person: '0'
policies: '0'
stanford_publications: '0'
redirect: '0'
samlauth_map: '0'
search: '0'
taxonomy_term_pages: '0'
user_admin_people: '0'
allowed_display_types:
viewfield_block: viewfield_block
block: '0'
default: '0'
graphql: '0'
page: '0'
handler: 'default:view'
handler_settings:
target_bundles: null
auto_create: false
field_type: viewfield
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 2c0f82c8-29b6-46db-856e-0a166aecf447
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.su_list_description
- filter.format.stanford_minimal_html
- paragraphs.paragraphs_type.stanford_filtered_lists
module:
- text
id: paragraph.stanford_filtered_lists.su_list_description
field_name: su_list_description
entity_type: paragraph
bundle: stanford_filtered_lists
label: Description
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats:
- stanford_minimal_html
field_type: text_long
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: ec9cb067-aaaa-40dd-9c43-e716a320be42
langcode: en
status: true
dependencies:
config:
- field.storage.paragraph.su_list_headline
- paragraphs.paragraphs_type.stanford_filtered_lists
id: paragraph.stanford_filtered_lists.su_list_headline
field_name: su_list_headline
entity_type: paragraph
bundle: stanford_filtered_lists
label: Headline
description: 'This is the main headline for the list paragraph. The headline will appear above the list view in large font. This heading is required to build correct heading structure for accessibility purposes.'
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
21 changes: 21 additions & 0 deletions config/sync/field.storage.paragraph.su_filtered_list_view.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 9f29c8e1-4f20-4eb9-b57e-70c4cc7c8c15
langcode: en
status: true
dependencies:
module:
- paragraphs
- viewfield
- views
id: paragraph.su_filtered_list_view
field_name: su_filtered_list_view
entity_type: paragraph
type: viewfield
settings:
target_type: view
module: viewfield
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
12 changes: 12 additions & 0 deletions config/sync/paragraphs.paragraphs_type.stanford_filtered_lists.yml

Large diffs are not rendered by default.

Loading
Loading