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.
The Drupal\views\Plugin\views\style\StylePluginBase class has the "rendered_strip" option with the label "Remove tags from rendered output". There are situations where its effect isn't strictly clear, so it would be useful to add a field description that explains it more clearly.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2861536 - after.png | 12.96 KB | sonona |
#7 | 2861536 - before.png | 9.3 KB | sonona |
#2 | drupal-n2861536-2.patch | 870 bytes | DamienMcKenna |
|
Comments
Comment #2
DamienMcKennaFor consideration, this adds a description:
This has been added to Views on D7 (#1684990: Multiple Grouping not working), it'd be good to keep these two in sync.
Comment #3
DamienMcKennaFYI the text was suggested by Bensbury.
Comment #4
LendudeYeah that really benefits from an additional explanation, nice.
Comment #5
yoroy CreditAttribution: yoroy at Roy Scholten commentedA before/after screenshot would be useful, where is this in the UI?
I think the current description is overly wordy, reading more like documentation and "should correct this" doesn't sound too confident :)
The aim is to provide just enough information to help people make a decision.
HTML tags can prevent rows from grouping correctly.
Does that capture the essence?
Comment #6
yoroy CreditAttribution: yoroy at Roy Scholten commentedComment #7
sonona CreditAttribution: sonona commentedBefore:
After:
Comment #8
sonona CreditAttribution: sonona commentedComment #20
smustgrave CreditAttribution: smustgrave at Mobomo commentedThis issue is being reviewed by the kind folks in Slack, #need-reveiw-queue. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge require as a guide.
so sounds like this needs usability review for
vs
Comment #21
simohell CreditAttribution: simohell commentedJust a quick comment:
Description says "Stripping the HTML tags should correct this" but we don't have a checkbox for "stripping" only "removing". At least let's use same word for same action. I personally like "strip" more since it's more like developer language, so that kind of indicated we are better off using the common word "remove". Shorter is however almost always better.
Also it's good to keep HTML with tags - I think standard install profile still has vocabulary tags etc. so with checkbox HTML would connect the dots right away.
Also "correct" result should be defined by HTML and CSS standards. It might be better to say "as intended" if code rendered according to standards results in something unexpected.
Comment #22
AaronMcHaleUsability review
We reviewed this issue at #3336927: Drupal Usability Meeting 2023-02-03, that issue will have a link to the recording.
Those who attended the meeting were: @AaronMcHale, @iszabo, @rkoller, @shaal, and @simohell.
The group recommended shortening the proposed description text, building on the suggestion in comment #20, and altering the label slightly:
Current label: Remove tags from rendered output
Proposed label: Remove HTML tags from rendered output
Proposed description: Modules may add tags that prevent rows from grouping as intended.
The group recommended these changes because we felt this balanced the need to convey what this checkbox will do, with the principle of less is more when it comes to UI text.