Improve creation and deletion of pagedesigner elements

Created on 29 September 2025, about 1 month ago

Problem/Motivation

Pagedesigner usage on website for content creation ends up in large amount of pagedesigner elements created.
After a quick analysis, the following behaviour are causing issues:

  • Mutliple pagedesigner container elements created for one node creation. This is due to pagedesigner_yoast form widget called on the add node form before the real container is actually created
  • Pagedesigner elements never get deleted on node deletion. This is due to the option $remove being always FALSE by default when calling clearPagedesigner. While keeping element in the database and mark them as deleted makes sense for element deletion/restoration and publish/unpublish state of the node, we should make sure the elements get deleted for good when the node itself is deleted.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇫🇷France GuillaumePacilly

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Pipeline finished with Failed
    23 days ago
    Total: 1891s
    #626393
  • Pipeline finished with Failed
    8 days ago
    Total: 1882s
    #641977
  • Pipeline finished with Failed
    8 days ago
    Total: 146s
    #642118
  • Pipeline finished with Failed
    8 days ago
    #642121
Production build 0.71.5 2024