Search by

drupal / mutamad_canvas

Drupal-Infrastructure

Drupal Canvas, the visual page builder, on Mutamad's terms: editors build pages, a different approver publishes them, pages translate between Arabic and English with one shared layout, and the editor runs under the strict Content Security Policy. Aligned to NCA ECC-2:2024 1-3-1 and 2-15.

Package info

git.drupalcode.org/project/mutamad_canvas.git

Homepage

Issues

Type:drupal-recipe

pkg:composer/drupal/mutamad_canvas

Statistics

Installs: 69

Dependents: 3

Suggesters: 0

1.0.x-dev 2026-11-12 17:40 UTC

This package is not auto-updated.

Last update: 2026-11-16 06:12:06 UTC


README

Mutamad Canvas — كانفاس

Mutamad Canvas

Drupal Canvas, the visual page builder, on Mutamad's terms. A drupal-recipe, applied by mutamad_starter.

Built and maintained by iSpectra — Imagine. Implement. Inspire. See iSpectra on drupal.org.

What Canvas is for on a Mutamad site

  • Canvas Pages for landing pages: the home page, a section's front page, a campaign.
  • Content templates for structured content. News, events and services are content types with fields, laid out by a Canvas template per display (full page, card, teaser), so they can be listed, searched, put in the sitemap and approved like any node. Each content type's recipe brings its templates.

What it sets up

  • Canvas 1.12, with Canvas Field Component: a node's own fields in a template, with their formatters. Not Canvas Entity Reference, which adds test components to every editor's library.
  • Mutamad Canvas Controls: a change is published by an approver who did not make it; a page an editor creates starts unpublished; publishes are logged; and the editor runs under the strict Content Security Policy, with only its import map allowed by hash.
  • Canvas Pages translate between Arabic and English symmetrically: one layout, each component's text translated, mirrored right-to-left by the theme.

Translating Canvas Pages

Canvas creates every page in the site's default language; its translations are its components' texts, and Canvas itself has no screen for them (the content language settings say so). Canvas Translate — "Translate" in the Canvas sidebar — lists every page in each language with its state (not translated, draft, up to date, outdated), shows the source beside the translation, and keeps a draft per translation until it is published. A page keeps one layout in both languages: only the texts are translated.

Its publishing is put under the approval rule by Mutamad Canvas Controls: a content reviewer publishes a translation, never one they wrote. Canvas Translate's translations of content templates are left to whoever administers templates. Canvas Translate is an alpha release; the Mutamad project template allows it.

Who does what (NCA ECC 1-3-1)

RoleCanvas
Content editorCreates and edits Canvas Pages, and translates them. Cannot publish
Content approverEdits, deletes and publishes Canvas Pages, and translates them; publishes translations — never their own changes or translations
Site adminContent templates, patterns, the page template, components, folders; publishes that design. Creates and edits Canvas Pages too; an approver publishes them
—Code components (JavaScript written in the browser) and the Brand Kit: the administrator account only. A Mutamad site's colours and fonts come with its theme

Requirements

Mutamad Roles and Mutamad Multilingual; the recipe applies both first.

Apply it to an existing site

On a site not started from the Mutamad project template, add it with Composer first. Composer accepts an alpha only if the site's own composer.json allows it, so the command allows Canvas Translate, which this project needs and which has no stable release:

composer require drupal/mutamad_canvas 'drupal/canvas_translate:^1.0@alpha'

Then:

drush recipe ../recipes/mutamad_canvas

Licence

GPL-2.0-or-later.

Maintainers

iSpectra

Built and maintained by iSpectra (on drupal.org).