- Issue created by @Grimreaper
- Merge request !41Issue #3512245 by grimreaper: Prop source to get background URL → (Open) created by Grimreaper
- 🇫🇷France Grimreaper France 🇫🇷
Example usage:
background_image: # type: string $ref: "ui-patterns://url" title: "Background image (media)" allowed_bundles: image: 'field_media_image' image_style: 'large'
- 🇫🇷France pdureau Paris
this is not JSON schema compliant:
allowed_bundles: image: 'field_media_image' image_style: 'large'
We need to find a way of expressing this data in a JSON schema way.
- 🇫🇷France pdureau Paris
I believe we don't need to specify both
prop_types: ['string', 'url']
.We target the more specific, so URL, and it will also be available for the more generic, string
Can you try?
- 🇫🇷France pdureau Paris
why is it called "Media: background image", there is nothing specific to background here, it depends of the usage in the component template, no?
- 🇫🇷France Grimreaper France 🇫🇷
I forgot transform relative when using an image stye.