Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow parent page change #2246

Merged
merged 5 commits into from
Mar 6, 2022
Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Mar 4, 2022

What is this pull request for?

Unless the page is the current language root or a layoutpage, we allow to change the parent.

This is much more efficient than using the dragndrop interface, especially in large trees.

Notable changes

The new page form now uses the alchemyPageSelect. This is useful for large sites with many pages.

Screenshots

Remove if no visual changes have been made.

Checklist

TODO

  • Reload page tree if parent has changed

@tvdeyen tvdeyen self-assigned this Mar 4, 2022
@tvdeyen tvdeyen force-pushed the allow-parent-page-change branch from 278b7bf to b9c374a Compare March 4, 2022 18:59
@tvdeyen tvdeyen marked this pull request as ready for review March 4, 2022 18:59
@tvdeyen tvdeyen requested a review from mamhoff March 4, 2022 18:59
@tvdeyen tvdeyen removed their assignment Mar 4, 2022
@tvdeyen tvdeyen marked this pull request as draft March 4, 2022 19:02
@tvdeyen tvdeyen self-assigned this Mar 4, 2022
@tvdeyen tvdeyen force-pushed the allow-parent-page-change branch from b9c374a to 35ef102 Compare March 5, 2022 15:16
tvdeyen added 2 commits March 6, 2022 09:34
This is useful for large sites with many pages
Sometimes we do not want to allow to clear the selection.
@tvdeyen tvdeyen force-pushed the allow-parent-page-change branch from 35ef102 to 55c42f2 Compare March 6, 2022 08:34
@tvdeyen tvdeyen marked this pull request as ready for review March 6, 2022 08:34
Copy link
Contributor

@mamhoff mamhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice feature!

tvdeyen added 3 commits March 6, 2022 14:40
Unless the page is the current language root or a layoutpage, we allow to change the parent.

This is much more efficient than using the dragndrop interface, especially in large trees.
A page needs a parent, unless it is the root page, but this does not get created in this dialog.
This is more reliable than just replacing the old and the new parents
@tvdeyen tvdeyen force-pushed the allow-parent-page-change branch from 55c42f2 to 5ecdf46 Compare March 6, 2022 13:41
@tvdeyen tvdeyen enabled auto-merge March 6, 2022 13:43
@tvdeyen tvdeyen merged commit a7c532d into AlchemyCMS:main Mar 6, 2022
@tvdeyen tvdeyen deleted the allow-parent-page-change branch March 6, 2022 13:47
tvdeyen added a commit to tvdeyen/alchemy_cms that referenced this pull request Mar 9, 2022
Backport pull request AlchemyCMS#2246 from tvdeyen/allow-parent-page-change
tvdeyen added a commit that referenced this pull request Mar 9, 2022
Backport pull request #2246 from tvdeyen/allow-parent-page-change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants