Field image default is NULL

Created on 1 September 2024, 3 months ago

Problem/Motivation

I have a node with an image field were a default image is loaded if no image is provided.
The default image is not rendered by sdc_display, instead I obtain a NULL value.

In all the other cases, without using sdc_display, the default image is working.
As workaround, for now I'm rendering the sdc directly from the template without using of sdc_display.

Steps to reproduce

  • Add an image field to a node with a default image
  • Use sdc_display to display the node and map the image to a prop

Below my component setting:

name: Event
group: Layout
description: Event layout.
props:
  type: object
  properties:
    title:
      type: string
      title: Title
    image:
      type: string
      title: Image
    type:
      type: string
      title: Type
    date:
      type: string
      title: Date
    location:
      type: string
      title: Location
    website:
      type: string
      title: Website
    references:
      type: string
      title: References
    body:
      type: string
      title: Body
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇪🇸Spain mecmartini Málaga

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024