Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Remove delete page from toolbar#7748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jrief wants to merge5 commits intodjango-cms:main
base:main
Choose a base branch
Loading
fromjrief:remove-delete-page-from-toolbar

Conversation

jrief
Copy link
Contributor

Description

Currently the toolbar offers a menu item to delete the current page.
This is problematic, because the user first has to change into edit mode, before allowing him to delete that page.
Moreover, after deletion which page shall the browser render?

@fsbraun and I therefore discussed on Slack and concluded, that deleting a page only shall be possible through the page tree.

  • I have opened this pull request againstdevelop
  • I have added or modified the tests when changing logic
  • I have followedthe conventional commits guidelines to add meaningful information into the changelog
  • I have read thecontribution guidelines and I have joined #workgroup-pr-review onSlack to find a “pr review buddy” who is going to review my pull request.

discard specific verbose_name from perms_needed
As discussed with@fsbraun on Slack, pages shall exclusively be deletable through the page tree but not through the toolbar.
@fsbraunfsbraun changed the titleRemove delete page from toolbarfeat: Remove delete page from toolbarJan 9, 2024
@fsbraunfsbraun added the 4.1 labelJan 9, 2024
@fsbraun
Copy link
Member

I would second the notion. Let me add my rationale:

  • Together with djangocms-versioning pages can never be deleted unless they do not have a single page content object or a setting is changed.
  • The impact of deleting a page is more transparent in the page tree: All languages and all child pages are affected. (I know all elements are shown in the confirmation dialogue - but that typically is extremely long and hard to grasp.) This is the asymmetry to the "New Page" menu entry.
  • It should not depend on the edit mode or publication status of the PageContent.

The alternative would be:

  • Only show the delete menu entry if deleting is actually possible in the setup (might be complex in relation with versioning)
  • Allow deleting in all edit models: preview, edit and "view on site".
  • Only grey out if the user lacks permissions
jrief and PeterW-LWL reacted with thumbs up emoji

@jrief
Copy link
ContributorAuthor

In the course of this, I would also remove the item "Duplicate this page".

Reason is, that users have no way to specify the target and hence that duplicate would end up as a sibling of the target with a slug named "copy-of-…". By allowing the create duplicates from the page tree, this problem can be avoided because normally those duplicated pages are added to a different parent anyway.

@fsbraunfsbraun added 5.0 and removed 4.1 labelsMay 17, 2024
@github-actionsGitHub Actions
Copy link

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.

@github-actionsgithub-actionsbot added stale and removed stale labelsMay 7, 2025
@github-actionsGitHub Actions
Copy link

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
Projects
Status: Review required
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@jrief@fsbraun

[8]ページ先頭

©2009-2025 Movatter.jp