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

Make it possible to show broken links for alle pages using mountpoints #293

Open
sypets opened this issue Oct 28, 2023 · 0 comments
Open
Labels
is::feature request New feature or request

Comments

@sypets
Copy link
Owner

sypets commented Oct 28, 2023

Is your feature request related to a problem? Please describe.
Curently, it is only possible to show broken links for the current page and subpages. If a user has several mountpoints, it is not possible to (easily) see all broken links.

Describe the solution you'd like

  1. Add additional item in select list to be able to select "all".
  2. If this is selected: In case of admin, show all (without navigating through page tree). In case of non-admin, use mountpoints to consider all pages.
protected function getAllowedDbMounts(): array
    {
        $dbMounts = (int)($this->getBackendUser()->uc['pageTree_temporaryMountPoint'] ?? 0);
        if (!$dbMounts) {
            $dbMounts = array_map('intval', $this->getBackendUser()->returnWebmounts());

            return array_unique($dbMounts);
        }

        return [$dbMounts];
    }
@sypets sypets added the is::feature request New feature or request label Oct 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is::feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant