Provide a way to create a new page

Created on 15 January 2025, 3 months 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

Merge Requests

Comments & Activities

Production build 0.71.5 2024