> For the complete documentation index, see [llms.txt](https://docs.varbase.vardot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.varbase.vardot.com/developers/varbase-eca/content-template-disable-preview.md).

# Disable preview when Canvas is enabled

The **Disable preview when Canvas is enabled** ECA workflow turns off the built-in content preview for a content type once that type uses **Drupal Canvas** for its full display, because Canvas provides its own live preview.

This model is provided by the **Drupal CMS Content Type Base** recipe (`drupal_cms_content_type_base`). The screenshot below shows the model open in the **Workflow Modeler**.

![The Disable Preview When Canvas Is Enabled Model Open in the Workflow Modeler](https://410909369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzBcuWLZ87gvtX5vA2YGD%2Fuploads%2Fgit-blob-d7ba30ce8478d4aa275ab78b8ef73be7623ea60f%2FWorkflow%20Modeler%20-%20Disable%20Preview%20When%20Canvas%20Is%20Enabled.png?alt=media)

## How It Works

* **Event, Content template created**: Fires when a **Drupal Canvas** content template (`canvas.content_template.node.*`) is saved.
* **Conditions**: The workflow continues only when both are true, combined with an **and** step:
  * **Template enabled?**: The saved template is turned on.
  * **Template targets full view mode?**: The template is for the content type's full display.
* **Action, Disable preview for content type**: Temporarily switches to the administrator account and sets the content type's preview mode to off.

The effect is that content types managed with **Drupal Canvas** no longer show the standard "Preview" button, avoiding a second, redundant preview.

## Viewing the Model

Go to **Administration** \ **Configuration** \ **Workflow** \ ***ECA***, find **Disable preview when Canvas is enabled**, and open it in the **Workflow Modeler**.
