When demo_mode, remove the "Use Experience Builder for page templates in this theme" checkbox

Created on 9 January 2025, 11 days ago

Overview

  1. The UI for editing the page template (i.e., components and blocks in global regions) isn't done yet. For example, we haven't yet implemented some of the UI affordance for making it clear when your edits will affect the site globally vs. the page you're editing. Related, the XB UI currently lets you drag and drop components/blocks from one region to another, including from the content region to a global region or vice versa, which makes it too easy to affect the site globally accidentally, and we plan to replace this with an option in the right-click menu instead, which is less prone to doing unintentionally.
  2. Choosing the "Use Experience Builder for page templates in this theme" option results in creating a PageTemplate config entity, which increases the surface area of data that can cause PHP errors during an update (potentially affecting the rest of the site depending on how such an error is handled). Ideally, in demo_mode we create as few XB entities as possible.

Proposed resolution

Given both of the above, we should skip all of experience_builder_form_system_theme_settings_alter() (e.g., exit early out of it) when the demo_mode config setting is true.

User interface changes

📌 Task
Status

Active

Version

0.0

Component

Page builder

Created by

🇺🇸United States effulgentsia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024