Views rest export and handling images

Created on 27 April 2017, over 7 years ago
Updated 11 December 2024, 9 days ago

I have added an image field to a basic_page content type and set the display to use the medium image style.

When using a views rest export:

  • with the format set to show as an entity, the original file URL is used rather than that set in the display settings and there is no way to set the appropriate image style. It should use the image style set in the display settings.
  • with the format set to show as fields, I can select the same image style I used in the content type's display settings. There should be a "default" option that does this (uses the content type's display setting) in case it changes without the views knowledge. In addition, there is no way to get other information like alt, title, width, height, etc.
Feature request
Status

Active

Version

11.0 🔥

Component

views.module

Created by

🇺🇸United States RobKoberg

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024