Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Users should be able to pick images.
Proposed resolution
Add image picker form element
References
- https://rvera.github.io/image-picker/
- https://www.drupal.org/project/webform_imagepicker
- https://cdnjs.com/libraries/image-picker
Tasks
- Element type = webform_select_image
- Extends 'select'
- Add support for text/value option properties.
- Allow for advanced #options text,value,src.
- Serialize options data to select element and set attributes using JSON.
- Add limit message.
- Recommends IMCE to populate URL/Path.
- Support hide/show using wrapper
- Use remote placeholders for examples.
Properties
- #class=webform-select-image-value
- #image_show_label
- #image_limit (#multiple)
- #image_limit_message (#multiple_message)
- #image_hide_select: TRUE
- #images
- text
- value
- src
- alt
- label
Comment | File | Size | Author |
---|---|---|---|
#16 | add_image_picker_form-2861953-15.patch | 85.5 KB | jrockowitz |
| |||
#14 | add_image_picker_form-2861953-14.patch | 84.89 KB | jrockowitz |
| |||
#11 | add_image_picker_form-2861953-11.patch | 76.46 KB | jrockowitz |
| |||
#9 | add_image_picker_form-2861953-9.patch | 52.09 KB | jrockowitz |
|
Comments
Comment #2
anpolimusComment #9
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commentedComment #11
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commentedComment #14
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commentedComment #16
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commentedComment #18
jrockowitz CreditAttribution: jrockowitz at The Big Blue House commented