getgrav / getgrav/grav-plugin-admin
Pages Field Not Displaying All Pages in Admin Panel
- Dominant language
- PHP
- Stars
- 377
- Forks
- 225
- Avg merge
- 11h 51m
- Merged PRs (30d)
- 4
Description
Hi,
We are experiencing an issue in the Grav Admin Plugin where the pages field does not display all pages in the dropdown list. Our Grav site contains over 1000 pages, and despite using the following blueprint configuration:
```
.link:
type: pages
size: large
classes: fancy
show_all: true
show_root: true
show_modular: true
toggleable: true
label: Internal Link (Page or Section)
```
The dropdown stops scrolling at a certain point, even though additional pages exist in the system. The missing pages are confirmed via `var_dump($list);` in `system/src/Grav/Common/Page/Pages.php`, function `getList()`.
A var_dump of ` {{ macro.page_options(_context, page_list) }}` also shows, that the pages are completely , but they do not appear completely in the dropdown HTML. The list seems to be cuttetd in the widget.
Steps to Reproduce:
- Run a Grav site with over 1000 pages.
- Use the pages field in a blueprint with `show_all: true.`
- Open the Admin Panel and try to select a page.
- Notice that the dropdown does not display all available pages.
Observed Behavior:
- The dropdown stops displaying pages at a certain threshold.
- Missing pages are present in the backend (var_dump confirms they exist).
- The issue may be caused by a JavaScript, becaue I got some outputs in console:
```
7[Violation] 'setTimeout' handler took ms
6[Violation] 'focus' handler took ms
[Violation] Forced reflow while executing JavaScript took 30ms
```
I also opened an Issue in[ Grav Forum](https://discourse.getgrav.org/t/pages-field-not-showing-all-pages-in-admin-panel-limit/27764/3). There are also some screenshots.
I would appreciate some help.
Kind regards, Christiana
Contributor guide
Assessment
This issue has not been assessed yet.