Provide a way to create a new page

Created on 15 January 2025, 5 days ago

Overview

In the designs, there is a + New button in the XB navigation. This should allow creating a new page.

Proposed resolution

XB doesn't have a way to create new entities, yet.

Currently XB doesn’t support going to /xb/{entity_type} to create a new entity, we will have to do that here. So we will create a new controller that creates a page that is unpublished. The title will be “Untitled page”, it is OK if there are other pages named “Untitled page.” Once done, bring the user to /xb/xb_page/123 where 123 is the ID returned from the controller response.

The route will need to be behind a CSRF token.

May be blocked on https://www.drupal.org/project/experience_builder/issues/3490087 🐛 Controllers performing data modification should make use of CSRF tokens via /session/token Active

User interface changes

None yet, because the UI for the "New" button is to be built. I'll link up to that issue once opened.

Feature request
Status

Active

Version

0.0

Component

Page

Created by

🇺🇸United States mglaman WI, USA

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

Comments & Activities

Production build 0.71.5 2024