Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Canvas Override

Security covered Under active development 1,219 sites

Part of the Canvas ecosystem · 49 projects

This module allows site builders to enable Content Canvas editing for specific content types on their full content view. This provides per-node control over the layout editing using the Drupal Canvas module.

Canvas Override lets site builders turn on per-content layout editing, built on Drupal Canvas, for the content types they choose.

Canvas gives a content type one shared Content Template. Canvas Override adds the other half: any individual content item can depart from that template and keep its own layout, edited in the same Canvas editor. Content that has not been customised keeps following the shared template, so a change to the template still reaches everything that has not been overridden.

What you get

  • A Canvas tab on content of the types you enable, opening the full Canvas editor for that one item.
  • A per-item layout stored in its own field_canvas_layout field, versioned with the node like any other field.
  • Reset Canvas layout, which drops the custom layout, restores the shared template, records a revision, and clears any pending Canvas auto-save.
  • Per-content-type and per-bundle permissions: use Canvas Override, reset a layout, and edit the shared default template are separate grants.
  • Components seeded from the Content Template keep their field bindings, so a heading bound to the title stays bound after you restyle it.

Requirements

Installation

composer require drupal/canvas_override
drush en canvas_override

Then edit a content type, open the Canvas layout vertical tab, and enable it.

No Canvas patch needed

As of 1.0.1 this module runs on a stock Canvas release. Earlier versions needed the #3567225: Allow per-node override of Content Template via checkbox in node selector patch, because Canvas ships Drupal\canvas\Storage\ComponentTreeLoader as a final class and several Canvas services type-hint that concrete class.

When that patch is not applied, Canvas Override loads its own copy of that class under Canvas's class name through a prepended autoloader. This happens only while the installed Canvas actually declares the class final; on a patched Canvas, or any future Canvas release that drops final, the module stands aside and Canvas's real class is used.

Worth knowing:

  • Install with Composer. The autoloader is registered through the package's autoload.files entry, so copying the module into web/modules/contrib/ by hand skips it and per-content editing stays off.
  • Under opcache.preload Canvas's class is already in memory before Composer's autoloader runs, so the replacement stands aside and per-content editing stays off. It does not fail hard.
  • The copy is re-synced with Canvas's own file on each Canvas release.
  • The durable fix is still upstream: land #3567225: Allow per-node override of Content Template via checkbox in node selector, ideally alongside a ComponentTreeLoaderInterface.

Known limitation

The link-to-field control renders on a per-content layout and lists the item's real fields, but applying a link is blocked inside Canvas's compiled front end, which resolves that action through its content-template endpoint. That is upstream in Canvas and cannot be fixed from this module.

Drupal 11 · not 10

Ask your assistant about Canvas Override

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
11
Tracked since
Mar 2026
Latest release
1 week ago
Releases (12 mo)
11 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.x-dev Dev 11 Mar 29, 2026