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 #3756: Add default “no results” text on all the News views #3760

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ejsamboy
Copy link
Contributor

@ejsamboy ejsamboy commented Oct 8, 2024

Description

Add a default "no results" text to all the News views.

Closes: #3756

How to test

  • Check that there is no content under the News content type.
  • Go to the News page.
  • You should see this text "There are no items listed"

Types of changes

Arizona Quickstart (install profile, custom modules, custom theme)

  • Patch release changes
    • Bug fix
    • Accessibility, performance, or security improvement
    • Critical institutional link or brand change
    • Adding experimental module
    • Update experimental module
  • Minor release changes
    • New feature
    • Breaking or visual change to existing behavior
    • Upgrade experimental module to stable
    • Enable existing module by default or database update
    • Non-critical brand change
    • New internal API or API improvement with backwards compatibility
    • Risky or disruptive cleanup to comply with coding standards
    • High-risk or disruptive change (requires upgrade path, risks regression, etc.)
  • Other or unknown
    • Other or unknown

Drupal core

  • Patch release changes
    • Security update
    • Patch level release (non-security bug-fix release)
    • Patch removal that's no longer necessary
  • Minor release changes
    • Major or minor level update
  • Other or unknown
    • Other or unknown

Drupal contrib projects

  • Patch release changes
    • Security update
    • Patch or minor level update
    • Add new module
    • Patch removal that's no longer necessary
  • Minor release changes
    • Major level update
  • Other or unknown
    • Other or unknown

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My change requires release notes.

@ejsamboy ejsamboy requested a review from a team as a code owner October 8, 2024 23:29
Copy link
Contributor

@joshuasosa joshuasosa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a lot of extraneous changes in the current PR. It should probably be cleaned up to just have the relevant changes.

At the moment, I'm not sure what this PR really changes. On a current standard install of AZQS, the /news page already has the "No results" messaging.

Looking at /admin/structure/views/view/az_news on the Probo build, most displays still don't have a "No results behavior" added (Feature View, Grid View with Filter, Small Row View, Teaser Grid Page, Recent News Marquee, Row Attachment).

Considering the wording that already exists on Paged Row View and Grid View, I think the message could be improved. This PR could be a fine place to update it.

As a user, the wording "No results found for the applied filters." is confusing. It makes me think I did something wrong, like I applied some hidden filters without knowing it when all I did was look at a page with the news grid or navigate to /news. There aren't even any filters that I can change as a user to alleviate the issue with the "applied filters."

I would suggest updating the wording to be similar to Events when there are no events.
Examples:

  • There are no news items.
  • There are no news items listed.
  • There is currently no news.
  • There is no news listed.

@ejsamboy
Copy link
Contributor Author

ejsamboy commented Oct 9, 2024

Screenshot 2024-10-09 at 1 16 22 PM

@joshuasosa
Copy link
Contributor

@ejsamboy good choice for wording! Looks like more will need updating.

Probo demo site shows:
Missing no results text for Feature View, Grid View with Filter, Small Row View, Teaser Grid Page, Recent News Marquee, Row Attachment
image

Old version of text for Paged Row View, Grid View
image

image

plugin_id: text
empty: true
content:
value: '<em>There are no news items listed</em>'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
value: '<em>There are no news items listed</em>'
value: '<em>There are no news items listed.</em>'

@danahertzberg
Copy link
Contributor

danahertzberg commented Oct 10, 2024

I rebuilt the probo site to see if the default changes all went through.

@danahertzberg
Copy link
Contributor

danahertzberg commented Oct 10, 2024

It looks like the changes were not applied as expected on the probo build. And it's due to the finder functionality overriding the News view display. To remedy this, please modify the following file to the following code in addition to what you have changed already.

modules/custom/az_finder/config/quickstart/views.view.az_news.yml

Open for code block of entire file
langcode: en
status: true
dependencies:
  config:
    - core.entity_view_mode.node.az_card
    - core.entity_view_mode.node.az_feature
    - core.entity_view_mode.node.az_marquee
    - 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
    - node.type.az_news
    - taxonomy.vocabulary.az_enterprise_attributes
    - taxonomy.vocabulary.az_news_tags
  module:
    - az_finder
    - better_exposed_filters
    - datetime
    - node
    - taxonomy
    - user
    - views_bootstrap
id: az_news
label: 'AZ News'
module: views
description: 'Use this view to manage News content'
tag: ''
base_table: node_field_data
base_field: nid
display:
  default:
    id: default
    display_title: Master
    display_plugin: default
    position: 0
    display_options:
      title: News
      fields:
        title:
          id: title
          table: node_field_data
          field: title
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: node
          entity_field: title
          plugin_id: field
          label: ''
          exclude: false
          alter:
            alter_text: false
            make_link: false
            absolute: false
            word_boundary: false
            ellipsis: false
            strip_tags: false
            trim: false
            html: false
          element_type: ''
          element_class: ''
          element_label_type: ''
          element_label_class: ''
          element_label_colon: true
          element_wrapper_type: ''
          element_wrapper_class: ''
          element_default_classes: true
          empty: ''
          hide_empty: false
          empty_zero: false
          hide_alter_empty: true
          click_sort_column: value
          type: string
          settings:
            link_to_entity: true
          group_column: value
          group_columns: {  }
          group_rows: true
          delta_limit: 0
          delta_offset: 0
          delta_reversed: false
          delta_first_last: false
          multi_type: separator
          separator: ', '
          field_api_classes: false
      pager:
        type: full
        options:
          offset: 0
          pagination_heading_level: h4
          items_per_page: 10
          total_pages: null
          id: 0
          tags:
            next: 'Next ›'
            previous: '‹ Previous'
            first: '« First'
            last: 'Last »'
          expose:
            items_per_page: false
            items_per_page_label: 'Items per page'
            items_per_page_options: '5, 10, 25, 50'
            items_per_page_options_all: false
            items_per_page_options_all_label: '- All -'
            offset: false
            offset_label: Offset
          quantity: 9
      exposed_form:
        type: basic
        options:
          submit_button: Apply
          reset_button: false
          reset_button_label: Reset
          exposed_sorts_label: 'Sort by'
          expose_sort_order: true
          sort_asc_label: Asc
          sort_desc_label: Desc
      access:
        type: perm
        options:
          perm: 'access content'
      cache:
        type: tag
        options: {  }
      empty:
        area:
          id: area
          table: views
          field: area
          relationship: none
          group_type: group
          admin_label: ''
          plugin_id: text
          empty: true
          content:
            value: '<em>There are no news items listed.</em>'
            format: az_standard
          tokenize: false
      sorts:
        field_az_published_value:
          id: field_az_published_value
          table: node__field_az_published
          field: field_az_published_value
          relationship: none
          group_type: group
          admin_label: ''
          plugin_id: datetime
          order: DESC
          expose:
            label: ''
            field_identifier: field_az_published_value
          exposed: false
          granularity: second
        created:
          id: created
          table: node_field_data
          field: created
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: node
          entity_field: created
          plugin_id: date
          order: DESC
          expose:
            label: ''
            field_identifier: created
          exposed: false
          granularity: second
      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
      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: {  }
      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_media_list
      query:
        type: views_query
        options:
          query_comment: ''
          disable_sql_rewrite: false
          distinct: false
          replica: false
          query_tags: {  }
      relationships: {  }
      header: {  }
      footer: {  }
      display_extenders: {  }
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - url
        - url.query_args
        - 'user.node_grants:view'
        - user.permissions
      tags: {  }
  az_feature:
    id: az_feature
    display_title: 'Feature View'
    display_plugin: block
    position: 1
    display_options:
      pager:
        type: some
        options:
          offset: 0
          items_per_page: 1
      sorts:
        sticky:
          id: sticky
          table: node_field_data
          field: sticky
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: node
          entity_field: sticky
          plugin_id: standard
          order: DESC
          expose:
            label: ''
            field_identifier: sticky
          exposed: false
        field_az_published_value:
          id: field_az_published_value
          table: node__field_az_published
          field: field_az_published_value
          relationship: none
          group_type: group
          admin_label: ''
          plugin_id: datetime
          order: DESC
          expose:
            label: ''
            field_identifier: field_az_published_value
          exposed: false
          granularity: second
      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_feature
      defaults:
        pager: false
        style: false
        style_options: false
        row: false
        sorts: false
        pager_options: false
      display_description: ''
      pager_options: null
      style_options: null
      display_extenders: {  }
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - url
        - 'user.node_grants:view'
        - user.permissions
      tags: {  }
  az_grid:
    id: az_grid
    display_title: 'Grid View'
    display_plugin: block
    position: 3
    display_options:
      pager:
        type: some
        options:
          offset: 0
          items_per_page: 3
      exposed_form:
        type: az_better_exposed_filters
        options:
          submit_button: Apply
          reset_button: true
          reset_button_label: 'Reset filters'
          exposed_sorts_label: 'Sort by'
          expose_sort_order: true
          sort_asc_label: Asc
          sort_desc_label: Desc
          text_input_required: 'Select any filter and click on Apply to see results'
          text_input_required_format: az_standard
          bef:
            general:
              autosubmit: true
              autosubmit_exclude_textfield: false
              autosubmit_textfield_delay: 500
              autosubmit_hide: true
              input_required: false
              allow_secondary: false
              secondary_label: 'Advanced options'
              secondary_open: false
              reset_button_always_show: false
            filter:
              title:
                plugin_id: default
                advanced:
                  placeholder_text: ''
                  collapsible: false
                  is_secondary: false
              tid:
                plugin_id: az_finder_tid_widget
                advanced:
                  sort_options: false
                  rewrite:
                    filter_rewrite_values: ''
                  collapsible: false
                  is_secondary: false
              tid_1:
                plugin_id: az_finder_tid_widget
                advanced:
                  sort_options: false
                  rewrite:
                    filter_rewrite_values: ''
                  collapsible: false
                  is_secondary: false
          reset_button_position: top
          reset_button_counter: true
          orientation: vertical
          skip_link: true
          skip_link_text: 'Skip to search and filter'
          skip_link_id: search-filter
      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
          group: 1
          expose:
            operator_limit_selection: false
            operator_list: {  }
        title:
          id: title
          table: node_field_data
          field: title
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: node
          entity_field: title
          plugin_id: string
          operator: contains
          value: ''
          group: 1
          exposed: true
          expose:
            operator_id: title_op
            label: 'Search by Title'
            description: ''
            use_operator: false
            operator: title_op
            operator_limit_selection: false
            operator_list: {  }
            identifier: title
            required: false
            remember: false
            multiple: false
            remember_roles:
              authenticated: authenticated
              anonymous: '0'
              az_content_editor: '0'
              az_content_admin: '0'
              az_user_admin: '0'
              az_html_admin: '0'
              administrator: '0'
            placeholder: ''
          is_grouped: false
          group_info:
            label: ''
            description: ''
            identifier: ''
            optional: true
            widget: select
            multiple: false
            remember: false
            default_group: All
            default_group_multiple: {  }
            group_items: {  }
        tid:
          id: tid
          table: taxonomy_index
          field: tid
          relationship: none
          group_type: group
          admin_label: ''
          plugin_id: taxonomy_index_tid
          operator: and
          value: {  }
          group: 1
          exposed: true
          expose:
            operator_id: tid_op
            label: ''
            description: ''
            use_operator: false
            operator: tid_op
            operator_limit_selection: false
            operator_list: {  }
            identifier: tags
            required: false
            remember: false
            multiple: true
            remember_roles:
              authenticated: authenticated
              anonymous: '0'
              az_content_editor: '0'
              az_content_admin: '0'
              az_user_admin: '0'
              az_html_admin: '0'
              administrator: '0'
            reduce: false
          is_grouped: false
          group_info:
            label: ''
            description: ''
            identifier: ''
            optional: true
            widget: select
            multiple: false
            remember: false
            default_group: All
            default_group_multiple: {  }
            group_items: {  }
          reduce_duplicates: true
          vid: az_news_tags
          type: select
          hierarchy: true
          limit: true
          error_message: true
        tid_1:
          id: tid_1
          table: taxonomy_index
          field: tid
          relationship: none
          group_type: group
          admin_label: ''
          plugin_id: taxonomy_index_tid
          operator: and
          value: {  }
          group: 1
          exposed: true
          expose:
            operator_id: tid_1_op
            label: ''
            description: ''
            use_operator: false
            operator: tid_1_op
            operator_limit_selection: false
            operator_list: {  }
            identifier: enterprise_attributes
            required: false
            remember: false
            multiple: true
            remember_roles:
              authenticated: authenticated
              anonymous: '0'
              az_content_editor: '0'
              az_content_admin: '0'
              az_user_admin: '0'
              az_html_admin: '0'
              administrator: '0'
            reduce: false
          is_grouped: false
          group_info:
            label: ''
            description: ''
            identifier: ''
            optional: true
            widget: select
            multiple: false
            remember: false
            default_group: All
            default_group_multiple: {  }
            group_items: {  }
          reduce_duplicates: true
          vid: az_enterprise_attributes
          type: select
          hierarchy: true
          limit: true
          error_message: true
      filter_groups:
        operator: AND
        groups:
          1: AND
      style:
        type: views_bootstrap_grid
        options:
          row_class: ''
          default_row_class: false
          uses_fields: false
          col_xs: col-12
          col_sm: col-sm-12
          col_md: col-md-4
          col_lg: col-lg-4
          col_xl: col-xl-4
      row:
        type: 'entity:node'
        options:
          relationship: none
          view_mode: az_card
      defaults:
        empty: true
        use_ajax: false
        pager: false
        exposed_form: false
        style: false
        row: false
        filters: false
        filter_groups: false
        footer: false
      use_ajax: true
      display_description: ''
      footer:
        area_text_custom:
          id: area_text_custom
          table: views
          field: area_text_custom
          relationship: none
          group_type: group
          admin_label: ''
          plugin_id: text_custom
          empty: false
          content: "<div class=\"text-align-center\">\r\n<a title=\"Read all news\" class=\"btn btn-outline-blue\" href=\"/news\">Read all news</a>\r\n</div>\r\n"
          tokenize: false
      exposed_block: true
      display_extenders: {  }
      block_description: 'Three column news block'
      block_category: 'Lists (Views)'
      allow:
        items_per_page: false
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - url
        - 'user.node_grants:view'
        - user.permissions
      tags: {  }
  az_grid_filter:
    id: az_grid_filter
    display_title: 'Grid View with Filter'
    display_plugin: block
    position: 3
    display_options:
      pager:
        type: full
        options:
          offset: 0
          pagination_heading_level: h4
          items_per_page: 9
          total_pages: null
          id: 0
          tags:
            next: 'Next ›'
            previous: '‹ Previous'
            first: '« First'
            last: 'Last »'
          expose:
            items_per_page: false
            items_per_page_label: 'Items per page'
            items_per_page_options: '5, 10, 25, 50'
            items_per_page_options_all: false
            items_per_page_options_all_label: '- All -'
            offset: false
            offset_label: Offset
          quantity: 9
      exposed_form:
        type: bef
        options:
          submit_button: Apply
          reset_button: false
          reset_button_label: Reset
          exposed_sorts_label: 'Sort by'
          expose_sort_order: false
          sort_asc_label: Asc
          sort_desc_label: Desc
          text_input_required: 'Select any filter and click on Apply to see results'
          text_input_required_format: az_standard
          bef:
            general:
              autosubmit: true
              autosubmit_exclude_textfield: false
              autosubmit_textfield_delay: 500
              autosubmit_hide: true
              input_required: false
              allow_secondary: false
              secondary_label: 'Advanced options'
              secondary_open: false
              reset_button_always_show: false
            filter:
              tid:
                plugin_id: default
                advanced:
                  sort_options: false
                  rewrite:
                    filter_rewrite_values: ''
                  collapsible: false
                  is_secondary: false
      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: {  }
        tid:
          id: tid
          table: taxonomy_index
          field: tid
          relationship: none
          group_type: group
          admin_label: Category
          plugin_id: taxonomy_index_tid
          operator: or
          value: {  }
          group: 1
          exposed: true
          expose:
            operator_id: tid_op
            label: 'Filter by category'
            description: ''
            use_operator: false
            operator: tid_op
            operator_limit_selection: false
            operator_list: {  }
            identifier: category
            required: false
            remember: false
            multiple: false
            remember_roles:
              authenticated: authenticated
              anonymous: '0'
              az_content_editor: '0'
              az_content_admin: '0'
              az_user_admin: '0'
              administrator: '0'
            reduce: false
          is_grouped: false
          group_info:
            label: ''
            description: ''
            identifier: ''
            optional: true
            widget: select
            multiple: false
            remember: false
            default_group: All
            default_group_multiple: {  }
            group_items: {  }
          reduce_duplicates: true
          vid: az_news_tags
          type: select
          hierarchy: false
          limit: true
          error_message: true
      filter_groups:
        operator: AND
        groups:
          1: AND
      style:
        type: views_bootstrap_grid
        options:
          row_class: ''
          default_row_class: false
          uses_fields: false
          col_xs: col-12
          col_sm: col-sm-12
          col_md: col-md-4
          col_lg: col-lg-4
          col_xl: col-xl-4
      row:
        type: 'entity:node'
        options:
          relationship: none
          view_mode: az_card
      defaults:
        use_ajax: false
        pager: false
        exposed_form: false
        style: false
        style_options: false
        row: false
        filters: false
        filter_groups: false
        pager_options: false
        footer: false
      use_ajax: true
      display_description: ''
      pager_options: null
      style_options: null
      footer:
        area:
          id: area
          table: views
          field: area
          relationship: none
          group_type: group
          admin_label: ''
          plugin_id: text
          empty: true
          content:
            value: "<style>\r\n#views-exposed-form-az-news-az-grid-filter {\r\n    margin-bottom: 0.5em;\r\n}\r\n#views-exposed-form-az-news-az-grid-filter label {\r\n    font-weight: bold;\r\n    display: block;\r\n}\r\n#views-exposed-form-az-news-az-grid-filter select {\r\n    color: #001c48;\r\n    font-weight: 500;\r\n    text-decoration: none;\r\n    letter-spacing: .04em;\r\n    white-space: normal;\r\n    border-width: 2px;\r\n    background-color: #dee2e6;\r\n    border-color: #dee2e6;\r\n    display: inline-block;\r\n    text-align: center;\r\n    vertical-align: middle;\r\n    -webkit-user-select: none;\r\n    -moz-user-select: none;\r\n    -ms-user-select: none;\r\n    user-select: none;\r\n    padding: 0.375rem 0.75rem;\r\n    font-size: 1rem;\r\n    line-height: 1.5;\r\n    border-radius: 0;\r\n    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;\r\n}\r\n</style>"
            format: full_html
          tokenize: false
      display_extenders: {  }
      block_description: 'Three column news block'
      block_category: 'Lists (Views)'
      allow:
        items_per_page: false
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - url
        - url.query_args
        - 'user.node_grants:view'
        - user.permissions
      tags: {  }
  az_paged_row:
    id: az_paged_row
    display_title: 'Paged Row View'
    display_plugin: page
    position: 2
    display_options:
      exposed_form:
        type: az_better_exposed_filters
        options:
          submit_button: Apply
          reset_button: true
          reset_button_label: 'Reset filters'
          exposed_sorts_label: 'Sort by'
          expose_sort_order: true
          sort_asc_label: Asc
          sort_desc_label: Desc
          text_input_required: 'Select any filter and click on Apply to see results'
          text_input_required_format: az_standard
          bef:
            general:
              autosubmit: true
              autosubmit_exclude_textfield: false
              autosubmit_textfield_delay: 500
              autosubmit_hide: true
              input_required: false
              allow_secondary: false
              secondary_label: 'Advanced options'
              secondary_open: false
              reset_button_always_show: false
            filter:
              title:
                plugin_id: default
                advanced:
                  placeholder_text: ''
                  collapsible: false
                  is_secondary: false
              tid:
                plugin_id: az_finder_tid_widget
                advanced:
                  sort_options: false
                  rewrite:
                    filter_rewrite_values: ''
                  collapsible: false
                  is_secondary: false
              tid_1:
                plugin_id: az_finder_tid_widget
                advanced:
                  sort_options: false
                  rewrite:
                    filter_rewrite_values: ''
                  collapsible: false
                  is_secondary: false
          reset_button_position: top
          reset_button_counter: true
          orientation: vertical
          skip_link: true
          skip_link_text: 'Skip to search and filter'
          skip_link_id: search-filter
      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: {  }
        title:
          id: title
          table: node_field_data
          field: title
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: node
          entity_field: title
          plugin_id: string
          operator: contains
          value: ''
          group: 1
          exposed: true
          expose:
            operator_id: title_op
            label: 'Search by Title'
            description: ''
            use_operator: false
            operator: title_op
            operator_limit_selection: false
            operator_list: {  }
            identifier: title
            required: false
            remember: false
            multiple: false
            remember_roles:
              authenticated: authenticated
              anonymous: '0'
              az_content_editor: '0'
              az_content_admin: '0'
              az_user_admin: '0'
              az_html_admin: '0'
              administrator: '0'
            placeholder: ''
          is_grouped: false
          group_info:
            label: ''
            description: ''
            identifier: ''
            optional: true
            widget: select
            multiple: false
            remember: false
            default_group: All
            default_group_multiple: {  }
            group_items: {  }
        tid:
          id: tid
          table: taxonomy_index
          field: tid
          relationship: none
          group_type: group
          admin_label: ''
          plugin_id: taxonomy_index_tid
          operator: and
          value: {  }
          group: 1
          exposed: true
          expose:
            operator_id: tid_op
            label: ''
            description: ''
            use_operator: false
            operator: tid_op
            operator_limit_selection: false
            operator_list: {  }
            identifier: tags
            required: false
            remember: false
            multiple: true
            remember_roles:
              authenticated: authenticated
              anonymous: '0'
              az_content_editor: '0'
              az_content_admin: '0'
              az_user_admin: '0'
              az_html_admin: '0'
              administrator: '0'
            reduce: false
          is_grouped: false
          group_info:
            label: ''
            description: ''
            identifier: ''
            optional: true
            widget: select
            multiple: false
            remember: false
            default_group: All
            default_group_multiple: {  }
            group_items: {  }
          reduce_duplicates: true
          vid: az_news_tags
          type: select
          hierarchy: true
          limit: true
          error_message: true
        tid_1:
          id: tid_1
          table: taxonomy_index
          field: tid
          relationship: none
          group_type: group
          admin_label: ''
          plugin_id: taxonomy_index_tid
          operator: and
          value: {  }
          group: 1
          exposed: true
          expose:
            operator_id: tid_1_op
            label: ''
            description: ''
            use_operator: false
            operator: tid_1_op
            operator_limit_selection: false
            operator_list: {  }
            identifier: enterprise_attributes
            required: false
            remember: false
            multiple: true
            remember_roles:
              authenticated: authenticated
              anonymous: '0'
              az_content_editor: '0'
              az_content_admin: '0'
              az_user_admin: '0'
              az_html_admin: '0'
              administrator: '0'
            reduce: false
          is_grouped: false
          group_info:
            label: ''
            description: ''
            identifier: ''
            optional: true
            widget: select
            multiple: false
            remember: false
            default_group: All
            default_group_multiple: {  }
            group_items: {  }
          reduce_duplicates: true
          vid: az_enterprise_attributes
          type: select
          hierarchy: true
          limit: true
          error_message: true
      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_media_list
      defaults:
        empty: true
        css_class: false
        use_ajax: false
        exposed_form: false
        style: false
        style_options: false
        row: false
        filters: false
        filter_groups: false
      css_class: add-pager-top-margin
      use_ajax: true
      display_description: ''
      style_options: null
      exposed_block: true
      display_extenders: {  }
      path: news
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - url
        - url.query_args
        - 'user.node_grants:view'
        - user.permissions
      tags: {  }
  az_sidebar:
    id: az_sidebar
    display_title: 'Small Row View'
    display_plugin: block
    position: 4
    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_minimal_media_list
      defaults:
        title: false
        pager: false
        style: false
        row: false
        arguments: false
        filters: false
        filter_groups: false
      display_description: ''
      display_extenders: {  }
      block_description: 'Sidebar 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
    display_options:
      pager:
        type: full
        options:
          offset: 4
          pagination_heading_level: h4
          items_per_page: 12
          total_pages: null
          id: 0
          tags:
            next: 'Next ›'
            previous: '‹ Previous'
            first: '« First'
            last: 'Last »'
          expose:
            items_per_page: false
            items_per_page_label: 'Items per page'
            items_per_page_options: '5, 10, 25, 50'
            items_per_page_options_all: false
            items_per_page_options_all_label: '- All -'
            offset: false
            offset_label: Offset
          quantity: 9
      style:
        type: views_bootstrap_grid
        options:
          row_class: ''
          default_row_class: false
          uses_fields: false
          col_xs: col-12
          col_sm: col-sm-12
          col_md: col-md-4
          col_lg: col-lg-4
          col_xl: col-xl-4
      row:
        type: 'entity:node'
        options:
          relationship: none
          view_mode: az_card
      defaults:
        pager: false
        style: false
        style_options: false
        row: false
        pager_options: false
      display_description: 'Grid of teasers that appears on /news-teasers (offset by 4)'
      pager_options: null
      style_options: null
      display_extenders: {  }
      path: news-teasers
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - url
        - url.query_args
        - 'user.node_grants:view'
        - user.permissions
      tags: {  }
  marquee:
    id: marquee
    display_title: 'Recent News Marquee'
    display_plugin: block
    position: 6
    display_options:
      title: ''
      pager:
        type: some
        options:
          offset: 0
          items_per_page: 1
      style:
        type: default
        options:
          row_class: ''
          default_row_class: false
          uses_fields: false
      row:
        type: 'entity:node'
        options:
          relationship: none
          view_mode: az_marquee
      defaults:
        title: false
        css_class: false
        pager: false
        style: false
        style_options: false
        row: false
        pager_options: false
      css_class: row
      display_description: ''
      pager_options: null
      style_options: null
      display_extenders: {  }
      block_description: 'Recent News Marquee'
      allow:
        items_per_page: false
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - url
        - 'user.node_grants:view'
        - user.permissions
      tags: {  }
  row_attachment:
    id: row_attachment
    display_title: 'Row Attachment'
    display_plugin: attachment
    position: 7
    display_options:
      title: ''
      pager:
        type: some
        options:
          offset: 1
          items_per_page: 3
      style:
        type: default
        options:
          row_class: ''
          default_row_class: false
          uses_fields: false
      row:
        type: 'entity:node'
        options:
          relationship: none
          view_mode: az_medium_media_list
      defaults:
        title: false
        css_class: false
        pager: false
        style: false
        style_options: false
        row: false
        pager_options: false
      css_class: ''
      display_description: ''
      pager_options: null
      style_options: null
      display_extenders: {  }
      displays:
        marquee: marquee
      attachment_position: after
      inherit_arguments: true
    cache_metadata:
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
        - url
        - 'user.node_grants:view'
        - user.permissions
      tags: {  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add default “no results” text on all the News views
4 participants