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

Closes #3590: Change News preview layouts #3610

Merged
merged 20 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
8401f6f
Change image layouts to left side
danahertzberg Aug 6, 2024
d475e3d
Add new content display and view display
danahertzberg Aug 7, 2024
4d6d530
Update modules/custom/az_news/config/install/views.view.az_news.yml
danahertzberg Aug 14, 2024
86e8578
Update modules/custom/az_news/config/install/core.entity_view_display…
danahertzberg Aug 14, 2024
24bfae5
Update modules/custom/az_news/config/install/core.entity_view_display…
danahertzberg Aug 14, 2024
325ec4b
Merge branch 'main' into issue/3590
danahertzberg Aug 14, 2024
7090d6b
Update thumbnail style and remaining content type display
danahertzberg Aug 14, 2024
5e56741
Revert "Update thumbnail style and remaining content type display"
danahertzberg Aug 14, 2024
bfe0bb7
Make thumbnail changes that actually work
danahertzberg Aug 14, 2024
e20bdfe
Update webp conversion
danahertzberg Aug 14, 2024
16cc785
Update to use thumbnail image style
danahertzberg Aug 20, 2024
0a52423
Update modules/custom/az_media/config/install/field.field.media.az_im…
danahertzberg Aug 23, 2024
87ec106
Update modules/custom/az_news/config/install/core.entity_view_display…
danahertzberg Sep 20, 2024
e76efc3
Update core.entity_view_display.media.az_image.az_thumbnail.yml
danahertzberg Sep 20, 2024
5a028bb
Update modules/custom/az_news/config/install/core.entity_view_display…
danahertzberg Sep 25, 2024
de1cc3a
Update modules/custom/az_news/config/install/core.entity_view_display…
danahertzberg Sep 25, 2024
6885355
Merge branch 'main' into issue/3590
danahertzberg Sep 25, 2024
67409a6
Remove duplicate image
danahertzberg Sep 30, 2024
0d078fe
Remove arizona.edu-specific changes
danahertzberg Sep 30, 2024
661bec9
Update modules/custom/az_finder/config/quickstart/views.view.az_news.yml
danahertzberg Oct 9, 2024
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
172 changes: 165 additions & 7 deletions modules/custom/az_finder/config/quickstart/views.view.az_news.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- core.entity_view_mode.node.az_media_list
- core.entity_view_mode.node.az_medium_media_list
- core.entity_view_mode.node.az_minimal_media_list
- core.entity_view_mode.node.az_small_row
- node.type.az_news
- taxonomy.vocabulary.az_enterprise_attributes
- taxonomy.vocabulary.az_news_tags
Expand Down Expand Up @@ -86,6 +87,7 @@ display:
type: full
options:
offset: 0
pagination_heading_level: h4
items_per_page: 10
total_pages: null
id: 0
Expand Down Expand Up @@ -328,7 +330,7 @@ display:
id: az_grid
display_title: 'Grid View'
display_plugin: block
position: 3
position: 4
display_options:
pager:
type: some
Expand Down Expand Up @@ -640,12 +642,13 @@ display:
id: az_grid_filter
display_title: 'Grid View with Filter'
display_plugin: block
position: 3
position: 5
display_options:
pager:
type: full
options:
offset: 0
pagination_heading_level: h4
items_per_page: 9
total_pages: null
id: 0
Expand Down Expand Up @@ -1126,9 +1129,9 @@ display:
tags: { }
az_sidebar:
id: az_sidebar
display_title: 'Small Row View'
display_title: 'Sidebar Row View'
display_plugin: block
position: 4
position: 9
display_options:
title: News
pager:
Expand Down Expand Up @@ -1278,16 +1281,171 @@ display:
- 'user.node_grants:view'
- user.permissions
tags: { }
az_small_row:
id: az_small_row
display_title: 'Small Row View'
display_plugin: block
position: 3
display_options:
title: News
pager:
type: some
options:
offset: 0
items_per_page: 3
arguments:
term_node_tid_depth:
id: term_node_tid_depth
table: node_field_data
field: term_node_tid_depth
relationship: none
group_type: group
admin_label: ''
entity_type: node
plugin_id: taxonomy_index_tid_depth
default_action: ignore
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: fixed
default_argument_options:
argument: ''
summary_options:
base_path: ''
count: true
override: false
items_per_page: 25
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: true
validate:
type: 'entity:taxonomy_term'
fail: ignore
validate_options:
bundles: { }
access: false
operation: view
multiple: 1
break_phrase: true
depth: 1
use_taxonomy_term_path: false
nid:
id: nid
table: node_field_data
field: nid
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: nid
plugin_id: node_nid
default_action: default
exception:
value: all
title_enable: false
title: All
title_enable: false
title: ''
default_argument_type: node
default_argument_options: { }
summary_options:
base_path: ''
count: true
override: false
items_per_page: 25
summary:
sort_order: asc
number_of_records: 0
format: default_summary
specify_validation: true
validate:
type: 'entity:node'
fail: 'not found'
validate_options:
bundles:
az_news: az_news
access: false
operation: view
multiple: 0
break_phrase: false
not: true
filters:
status:
id: status
table: node_field_data
field: status
entity_type: node
entity_field: status
plugin_id: boolean
value: '1'
group: 1
expose:
operator: ''
operator_limit_selection: false
operator_list: { }
type:
id: type
table: node_field_data
field: type
entity_type: node
entity_field: type
plugin_id: bundle
value:
az_news: az_news
expose:
operator_limit_selection: false
operator_list: { }
filter_groups:
operator: AND
groups:
1: AND
style:
type: default
options:
row_class: media-list-row
default_row_class: false
uses_fields: false
row:
type: 'entity:node'
options:
relationship: none
view_mode: az_small_row
defaults:
title: false
pager: false
style: false
row: false
arguments: false
filters: false
filter_groups: false
display_description: ''
display_extenders: { }
block_description: 'Small Row News Block'
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- 'user.node_grants:view'
- user.permissions
tags: { }
az_teaser_grid:
id: az_teaser_grid
display_title: 'Teaser Grid Page'
display_plugin: page
position: 5
position: 6
display_options:
pager:
type: full
options:
offset: 4
pagination_heading_level: h4
items_per_page: 12
total_pages: null
id: 0
Expand Down Expand Up @@ -1346,7 +1504,7 @@ display:
id: marquee
display_title: 'Recent News Marquee'
display_plugin: block
position: 6
position: 7
display_options:
title: ''
pager:
Expand Down Expand Up @@ -1394,7 +1552,7 @@ display:
id: row_attachment
display_title: 'Row Attachment'
display_plugin: attachment
position: 7
position: 8
display_options:
title: ''
pager:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,85 @@ dependencies:
- field.field.media.az_image.field_az_caption
- field.field.media.az_image.field_az_credit
- field.field.media.az_image.field_media_az_image
- image.style.thumbnail
- image.style.az_thumbnail
- media.type.az_image
module:
- field_group
- image
third_party_settings:
field_group:
group_content:
children:
- group_row
label: Content
parent_name: ''
region: hidden
weight: 7
format_type: html_element
format_settings:
classes: ''
id: ''
element: div
show_label: false
label_element: h3
label_element_classes: ''
attributes: ''
effect: none
speed: fast
group_row:
children: { }
label: 'Image Row'
parent_name: group_content
region: hidden
weight: 2
format_type: html_element
format_settings:
classes: row
id: ''
element: div
show_label: false
label_element: h3
label_element_classes: ''
attributes: ''
effect: none
speed: fast
group_caption:
children: { }
label: 'Caption Row'
parent_name: ''
region: hidden
weight: 8
format_type: html_element
format_settings:
classes: row
id: ''
element: div
show_label: false
label_element: h3
label_element_classes: ''
attributes: ''
effect: none
speed: fast
id: media.az_image.az_thumbnail
targetEntityType: media
bundle: az_image
mode: az_thumbnail
content:
thumbnail:
field_media_az_image:
type: image
weight: 0
region: content
label: hidden
label: visually_hidden
settings:
image_style: thumbnail
image_link: ''
image_style: az_thumbnail
image_loading:
attribute: lazy
third_party_settings: { }
weight: 0
region: content
hidden:
created: true
field_az_caption: true
field_az_credit: true
field_media_az_image: true
name: true
thumbnail: true
uid: true
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,21 @@ translatable: true
default_value: { }
default_value_callback: ''
settings:
handler: 'default:file'
danahertzberg marked this conversation as resolved.
Show resolved Hide resolved
handler_settings: { }
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: 'png gif jpg jpeg'
max_filesize: ''
max_resolution: ''
min_resolution: ''
alt_field: true
alt_field_required: true
title_field: false
title_field_required: false
max_resolution: ''
min_resolution: ''
default_image:
uuid: null
uuid: ''
alt: ''
title: ''
width: null
height: null
file_directory: '[date:custom:Y]-[date:custom:m]'
file_extensions: 'png gif jpg jpeg'
max_filesize: ''
handler: 'default:file'
handler_settings: { }
field_type: image
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ field_name: field_media_az_image
entity_type: media
type: image
settings:
target_type: file
danahertzberg marked this conversation as resolved.
Show resolved Hide resolved
display_field: false
display_default: false
uri_scheme: public
default_image:
uuid: null
uuid: ''
alt: ''
title: ''
width: null
height: null
target_type: file
display_field: false
display_default: false
uri_scheme: public
module: image
locked: false
cardinality: 1
Expand Down
Loading