Heading Normalizer

Component ID

557670

Component name

Heading Normalizer

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

1191

Component created

Component changed

Component body

Headings (h1..h6) are the key elements to create structural content. This project normalizes heading usage to a common denominator. All pages start at the same heading level in output. You can configure the start level of headings. Furthermore, there's an option to start at a different heading for views.

So what real problem is this solution for?

If you use a wysiwyg editor you might have already heard of the question of wisdom: "which is the first heading to use? h2? h3?".

Our Opinion is: The only right answer is h1 for persistence. But h1 would be wrong in output - so we need an output filter. Here we go.

And the most beautiful part of the story: the filter even corrects (wrong) heading usage to the normalized heading range. If you previously started at heading 3, they will also be correctly normalized to the chosen output level.

How to get started

Install the module, Go to admin/settings/filters page and enable the new filter for the chosen input formats. There must be no HTML Filter present that removes heading tags.