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 to link page to next element independently of hierarchy level #6255

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thomaslow
Copy link
Collaborator

@thomaslow thomaslow commented Oct 8, 2024

Fixes #5457

This pull request allows to add a new link (context menu entry "Assign to next element") for the currently selected page to the following folder independently of its hierarchy level. The selection logic works as follows:

  1. find a parent folder whose next sibling is also a folder (continue with parent of parent, if not found)
  2. select the deepest child folder of the next sibling only if they are the respective first children

This pull request also checks if a link has already been added before such that users cannot accidentally add the same link twice (the menu entry "Assign to next element" disappears).

Demo

2024-10-08.14-56-08.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant