Skip to content

Commit

Permalink
Closes #3590: Change News preview layouts (#3610)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Green <[email protected]>
Co-authored-by: tadean <[email protected]>
  • Loading branch information
3 people authored Oct 11, 2024
1 parent 26cfead commit 05c5da4
Show file tree
Hide file tree
Showing 13 changed files with 1,022 additions and 381 deletions.
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'
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
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

0 comments on commit 05c5da4

Please sign in to comment.