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.
Views offers various places to allow people to replace certain piece of html with another element.
In views/config/views.settings.yml you can setup which tags are available by default, which are currently sort of the common tags of HTML 4.
If someone wants to do this task: Find out the most used HTML tags and add them.
Comment | File | Size | Author |
---|---|---|---|
#11 | views-html-tags-1888698-11.patch | 616 bytes | hussainweb |
#7 | views-most_used_html_tags-1888698-7.patch | 351 bytes | nagwani |
#1 | views-most_used_html_tags-1888698-1.patch | 365 bytes | nagwani |
Comments
Comment #1
nagwani CreditAttribution: nagwani commentedAdded a few HTML tags
Comment #2
dawehnerThanks for working on that!
We certainly also want stuff like section.
Comment #3
droplet CreditAttribution: droplet commentedwrap with br/img / a ?
Comment #4
dawehnerYeah droplet that's a good point.
We just want to have HTML tags which are used as wrappers, so none of those actually are.
Comment #5
nagwani CreditAttribution: nagwani commentedI assume we want HTML 5 wrapper tags as well. Will update with those
Comment #6
nagwani CreditAttribution: nagwani commentedComment #7
nagwani CreditAttribution: nagwani commentedRemoved not wrapper tags. Added aside tag.
Based on some research on internet, I am not sure if we would want to allow the section tag.
http://html5doctor.com/downloads/h5d-sectioning-flowchart.png
http://html5doctor.com/avoiding-common-html5-mistakes/
Comment #8
samhassell CreditAttribution: samhassell commentedHow would <ul> and <li> work in this case?
Applying <ul> gives:
I can't see any way to rewrite this into something that makes sense. Even if you wrap the <a> in an <li>, an unordered list with one item doesn't make sense.
Comment #9
dawehnerI guess some of those could help: article, section, aside, details?, maybe more.
Comment #10
dawehnerComment #11
hussainwebHow about this list (attached)?
Some of the omissions, and the reason why I omitted them:
What are your thoughts on the omissions?
On the other hand, what about the list attached? I realize it is rather an extensive list. Which ones do you think we should keep?
Comment #12
hussainwebComment #14
dawehner#11: views-html-tags-1888698-11.patch queued for re-testing.
Comment #15
dawehnerI like all this tags.
Comment #16
dawehnerLet's get them in.
Comment #17
alexpottCommitted 8043b9a and pushed to 8.x. Thanks!