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.
I think it's wrong to name the id of the wrapper for content and sidebars to "page" semantics-wise. The page is the whole page template.
I propose two solutions:
- Rename page to main
- Rename page to main and add a wrapper around all content named page.
Comment | File | Size | Author |
---|---|---|---|
#2 | tao-927578-rename-and-wrapper_2.patch | 5.07 KB | ptrl |
#1 | tao-927578-rename.patch | 653 bytes | ptrl |
#1 | tao-927578-rename-and-wrapper.patch | 5.11 KB | ptrl |
Comments
Comment #1
ptrl CreditAttribution: ptrl commentedComment #2
ptrl CreditAttribution: ptrl commentedpatch tao-927578-rename-and-wrapper.patch missing newline at end of file
Comment #3
barraponto CreditAttribution: barraponto commentedI like it, and if I were a mantainer, I'd go with #main for 7.x-4.x. I wouldn't like to break all of the child themes that expect a #page id in page.tpl.php. But truth is #main is the content+sidebars wrapper in system.module and Zen, and I'd expect it in Tao as well.
But no #page wrapper, it just doesn't make sense. Use the body tag.