Document that you need to programmatically create an `xb_page` in order to use experience builder

Created on 5 August 2025, 4 days ago

Overview

Installing experience builder using a standard Drupal 11 or Drupal CMS should be as easy as enabling the module and having a link to edit experience builder page or to a listing of available pages you can edit.

At the moment there is no UI to create experience builder entities in and you cannot use (easily) other content types within experience builder.

You must create xb_page entities programmatically (via default content in a recipe or via a drush php cmd using Drupal's entity API.

After creation you are then able to edit them via the `/xb/xb_page/1/editor` path.

Neither of these important pieces of information are documented or workarounds provided.

I understand the phenaproxima/xb-demo project spins up a site with this but for developing theme's with components that are experience builder compatible with our pre-existing development workflow this is not enough.

Proposed resolution

1. Add a notice to the `requirements` notifying user's of this restriction.
2. Provide a drush command in the xb_dev module that generates pages for the user
3. Add a recipe that installs a few empty shells of content so the user can edit and play around with
4. Add clear documentation on the restriction, how to generate a page and where to go to edit it.

πŸ“Œ Task
Status

Active

Version

1.0

Component

… to be triaged

Created by

πŸ‡¦πŸ‡ΊAustralia RichardGaunt Melbourne

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

Comments & Activities

  • Issue created by @RichardGaunt
  • πŸ‡¬πŸ‡§United Kingdom rakesh.gectcr Manchester

    This is the error, When I am trying to install in Drupal 11 site

      SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.xb_page' does
      n't exist: INSERT INTO "xb_page" ("revision_id", "uuid", "langcode") VALUES
       (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholde
      r_2); Array
      (
          [:db_insert_placeholder_0] =>
          [:db_insert_placeholder_1] => b275dfd8-6630-4beb-a36c-ecf10c685ec4
          [:db_insert_placeholder_2] => en-gb
      )
    
    
    In PdoTrait.php line 115:
    
      SQLSTATE[42S02]: Base table or view not found: 1146 Table 'db.xb_page' does
      n't exist
Production build 0.71.5 2024