Problem/Motivation

Canvas needs a bit different philosophy on page.html.twig file structure. There should be less regions (usually header, content and footer is enough) and the content section region should not be wrapped into centering container, so Canvas can handle full-width edge-to-edge layouts natively, by using the section SDC in canvas editor properly. Section SDC is already shipped by theme.

Proposed resolution

When user turns the "Use Drupal Canvas for page templates in this theme." option on, it should automatically enable only regions that makes sense for canvas.

Content should stay wrapped into section SDC only if page is not rendered by canvas (utilize rendered_by_canvas variable).

CommentFileSizeAuthor
#4 Zrzut ekranu 2026-04-2 o 15.32.02.png119.8 KBfirflant
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

firflant created an issue. See original summary.

firflant’s picture

Assigned: Unassigned » firflant
firflant’s picture

StatusFileSize
new119.8 KB

Here is how default regions configuration for canvas now looks like

default canvas regions

firflant’s picture

Status: Active » Needs review
ravi kant’s picture

Assigned: firflant » Unassigned
Status: Needs review » Reviewed & tested by the community

Looking good for me. Working as suggested in ticket.

firflant’s picture

@ravi-kant I cannot assist in merging the changes. Are you capable of adding my account as a maintainer, so we can keep going? @opdavies after its initial messages is completely out of touch. It seems that you are the main person in charge now.

Regards

ravi kant’s picture

@firflant I cannot add maintainer But i have merged the PR.

ravi kant’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

ravi kant’s picture

Status: Fixed » Closed (fixed)