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
As described in #2716773: [Meta] Convert 7.x-6.x Twig components to be Drupal 8-compatible, we need to convert the comment component from Zen 7.x-6.x to be compatible with Drupal 8.
Proposed resolution
The parent issue describes the general solution we need to use when converting a component.
We will need a comment.html.twig file and remove remains of comment-wrapper cos core one is great.
Comment | File | Size | Author |
---|---|---|---|
#11 | 2724973-comment-11-m.patch | 9.58 KB | andypost |
#10 | 2724973-comment-8.patch | 10.86 KB | andypost |
#10 | interdiff.txt | 3.45 KB | andypost |
#6 | convert_comment-2724973-6.patch | 7.4 KB | andriyun |
Comments
Comment #2
JimSmith CreditAttribution: JimSmith as a volunteer and commentedHere is a patch that provides a start. At this point it is incomplete and is throwing an error during Gulp compilation.
Comment #3
JimSmith CreditAttribution: JimSmith as a volunteer and commentedI may be too tied up to work on this for now so I'm unassigning myself. If I can free up some time I will pick it up again or take another task. I just don't want to be a roadblock.
Comment #4
JohnAlbinI'm starting on this now.
Comment #5
andriyun CreditAttribution: andriyun at Skilld, Drupal Ukraine Community commentedI'm going to continue work with this issue after 5 months of silence :)
Comment #6
andriyun CreditAttribution: andriyun at Skilld, Drupal Ukraine Community commentedComment #7
HOG CreditAttribution: HOG at Skilld, Drupal Ukraine Community commentedPatch work ok for me.
+1 to RTBC
Comment #8
andypostLooks mostly clean and "core way" but this prevents to manage title within
{{content}}
user picture is optional as well as submitted
Also it makes sense to find consensus on "rearrange" that users can make with field_ui manage display!
Comment #9
andriyun CreditAttribution: andriyun at Skilld, Drupal Ukraine Community commentedThank you for review.
@Andy I have used template from Classy core theme.
So we have the same abilities like we had now.
If you want add smth or improve need a bit more then few string in review comment.
Please elaborate your idea or propose more extended patch.
Comment #10
andypostFirst of all - kill remains of d7 for comment
Todo - convert comment wrapper to finished with component, ref #1962846: Use field instance name for header of comment list, drop comment-wrapper template
Comment #11
andypostwrapper could be used from core
looks watermark should be used because there's such component in
/STARTERKIT/components/components/watermark/watermark.twig
Comment #12
andriyun CreditAttribution: andriyun at Skilld, Drupal Ukraine Community commented