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
Currently there is no way to add images to a comment on a node. In some cases this is necessary to have meaningful discussions on certain topics/events.
Solution
It should be possible for all LU to add images to a comment on a node. We already have the comment file uploads module which we should leverage. If we allow image file extensions and improve the display of uploaded images we can already make this happen.
Acceptance criteria:
- User should be able to insert image in comments on content (only node)
- Should work next to the comment file upload module
- Behaviour should be similar to the image on a post
- Image should be presented in Lightbox (same as what is done on post currently)
- Image can be added to the comment (same interaction as post)
- Images can also be added to replies on a comment (same as comment)
- (Discuss: performance loading impact as well)
- Determine how the image on comments will look like on streams as well
PR Here:
https://github.com/goalgorilla/open_social/pull/1231
Comment | File | Size | Author |
---|---|---|---|
#5 | comment_detail page.png | 345.29 KB | jaapjan |
Comments
Comment #5
jaapjan CreditAttribution: jaapjan as a volunteer and at Open Social commentedComment #6
jaapjan CreditAttribution: jaapjan as a volunteer and at Open Social commentedWill be released in 5.0.
Comment #9
tepelena CreditAttribution: tepelena commentedJust updated to the latest release of OS and the option to add image when commenting is not there.
Comment #10
aangel CreditAttribution: aangel at Performant Labs commented@tepelena there is a module to turn on ("social_comment_upload"). Then you should see "Add attachment" below the textfield and a "Choose file" below that.
It's not working for me quite yet but it worked on a stock install of OS 7.1; I think I have an Ajax problem on my install.