Steps:
Create few articles and upload images in them OR you can devel generat...

Contribution Date
Technology
Contribution Project
Contribution Details

Steps:

  • Create few articles and upload images in them OR you can devel generate articles
  • Import views using the code below (note that there are two kinds, one working properly and other which is buggy)
  • Inspect element images in the view
  • The views which is rendering image directly will have typeof as foaf:Image
  • The views which is rendering image using tokens will have typeof as Image

Views with image rendering properly:

langcode: en status: true dependencies: config: - field.storage.node.field_image module: - image - node - user id: test label: test module: views description: '' tag: '' base_table: node_field_data base_field: nid core: 8.x display: default: display_plugin: default id: default display_title: Master position: 0 display_options: access: type: perm options: perm: 'access content' cache: type: tag options: { } query: type: views_query options: disable_sql_rewrite: false distinct: false replica: false query_comment: '' query_tags: { } 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 pager: type: full options: items_per_page: 10 offset: 0 id: 0 total_pages: null 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 tags: previous: '‹ previous' next: 'next ›' first: '« first' last: 'last »' quantity: 9 style: type: default row: type: fields options: default_field_elements: true inline: { } separator: '' hide_empty: false fields: title: id: title table: node_field_data field: title entity_type: node entity_field: title label: '' alter: alter_text: false make_link: false absolute: false trim: false word_boundary: false ellipsis: false strip_tags: false html: false hide_empty: false empty_zero: false settings: link_to_entity: true plugin_id: field relationship: none group_type: group admin_label: '' exclude: 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_alter_empty: true click_sort_column: value type: string 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 field_image: id: field_image table: node__field_image field: field_image relationship: none group_type: group admin_label: '' label: '' exclude: false alter: alter_text: false text: '' make_link: false path: '' absolute: false external: false replace_spaces: false path_case: none trim_whitespace: false alt: '' rel: '' link_class: '' prefix: '' suffix: '' target: '' nl2br: false max_length: 0 word_boundary: true ellipsis: true more_link: false more_link_text: '' more_link_path: '' strip_tags: false trim: false preserve_tags: '' html: false element_type: '' element_class: '' element_label_type: '' element_label_class: '' element_label_colon: false element_wrapper_type: '' element_wrapper_class: '' element_default_classes: true empty: '' hide_empty: false empty_zero: false hide_alter_empty: true click_sort_column: target_id type: image settings: image_style: '' image_link: '' group_column: '' 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 plugin_id: field filters: status: value: true table: node_field_data field: status plugin_id: boolean entity_type: node entity_field: status id: status expose: operator: '' group: 1 sorts: created: id: created table: node_field_data field: created order: DESC entity_type: node entity_field: created plugin_id: date relationship: none group_type: group admin_label: '' exposed: false expose: label: '' granularity: second title: test header: { } footer: { } empty: { } relationships: { } arguments: { } display_extenders: { } cache_metadata: contexts: - 'languages:language_content' - 'languages:language_interface' - url.query_args - 'user.node_grants:view' - user.permissions cacheable: false page_1: display_plugin: page id: page_1 display_title: Page position: 1 display_options: display_extenders: { } path: test cache_metadata: contexts: - 'languages:language_content' - 'languages:language_interface' - url.query_args - 'user.node_grants:view' - user.permissions cacheable: false

Views with image rendering incorrectly:

langcode: en status: true dependencies: config: - field.storage.node.field_image module: - image - node - user id: test_buggy label: 'test buggy' module: views description: '' tag: '' base_table: node_field_data base_field: nid core: 8.x display: default: display_plugin: default id: default display_title: Master position: 0 display_options: access: type: perm options: perm: 'access content' cache: type: tag options: { } query: type: views_query options: disable_sql_rewrite: false distinct: false replica: false query_comment: '' query_tags: { } 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 pager: type: full options: items_per_page: 10 offset: 0 id: 0 total_pages: null 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 tags: previous: '‹ previous' next: 'next ›' first: '« first' last: 'last »' quantity: 9 style: type: default row: type: fields options: default_field_elements: true inline: { } separator: '' hide_empty: false fields: title: id: title table: node_field_data field: title entity_type: node entity_field: title label: '' alter: alter_text: false make_link: false absolute: false trim: false word_boundary: false ellipsis: false strip_tags: false html: false hide_empty: false empty_zero: false settings: link_to_entity: true plugin_id: field relationship: none group_type: group admin_label: '' exclude: 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_alter_empty: true click_sort_column: value type: string 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 field_image: id: field_image table: node__field_image field: field_image relationship: none group_type: group admin_label: '' label: '' exclude: true alter: alter_text: false text: '' make_link: false path: '' absolute: false external: false replace_spaces: false path_case: none trim_whitespace: false alt: '' rel: '' link_class: '' prefix: '' suffix: '' target: '' nl2br: false max_length: 0 word_boundary: true ellipsis: true more_link: false more_link_text: '' more_link_path: '' strip_tags: false trim: false preserve_tags: '' html: false element_type: '' element_class: '' element_label_type: '' element_label_class: '' element_label_colon: false element_wrapper_type: '' element_wrapper_class: '' element_default_classes: true empty: '' hide_empty: false empty_zero: false hide_alter_empty: true click_sort_column: target_id type: image settings: image_style: '' image_link: '' group_column: '' 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 plugin_id: field nothing: id: nothing table: views field: nothing relationship: none group_type: group admin_label: '' label: '' exclude: false alter: alter_text: true text: '{{ field_image }}' make_link: false path: '' absolute: false external: false replace_spaces: false path_case: none trim_whitespace: false alt: '' rel: '' link_class: '' prefix: '' suffix: '' target: '' nl2br: false max_length: 0 word_boundary: true ellipsis: true more_link: false more_link_text: '' more_link_path: '' strip_tags: false trim: false preserve_tags: '' html: false element_type: '' element_class: '' element_label_type: '' element_label_class: '' element_label_colon: false element_wrapper_type: '' element_wrapper_class: '' element_default_classes: true empty: '' hide_empty: false empty_zero: false hide_alter_empty: false plugin_id: custom filters: status: value: true table: node_field_data field: status plugin_id: boolean entity_type: node entity_field: status id: status expose: operator: '' group: 1 sorts: created: id: created table: node_field_data field: created order: DESC entity_type: node entity_field: created plugin_id: date relationship: none group_type: group admin_label: '' exposed: false expose: label: '' granularity: second title: test header: { } footer: { } empty: { } relationships: { } arguments: { } display_extenders: { } cache_metadata: contexts: - 'languages:language_content' - 'languages:language_interface' - url.query_args - 'user.node_grants:view' - user.permissions cacheable: false page_1: display_plugin: page id: page_1 display_title: Page position: 1 display_options: display_extenders: { } path: test-buggy cache_metadata: contexts: - 'languages:language_content' - 'languages:language_interface' - url.query_args - 'user.node_grants:view' - user.permissions cacheable: false
Contribution Author
Files count
0
Patches count
0