Skip to content

Move Page: replace native prompt with a modal folder picker #36

@shaack

Description

@shaack

The "Move Page" action in the admin page list currently uses a native browser prompt() where the destination folder has to be typed by hand (web/admin/assets/pages.js, window.movePage).

The prompt previously dumped the full folder list into its message as a typing aid. That list has been removed — the folder tree is already visible in the left sidebar — so the dialog is now a plain text input.

Enhancement

Replace the prompt() with a proper modal that lets the user pick the destination folder from a clickable list (or a <select>), instead of typing a path. This removes the typo risk and makes the feature discoverable.

  • The admin already bundles bootstrap-show-modal, which can be used for the dialog.
  • The folder list is already available client-side: pages.php passes allFolders (from PageTreeHelper::collectFolders()) into pages.js.

Follow-up to removing the inline folder list from the prompt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions