You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/bridges/easy-admin.rst
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,8 @@ The integration can be configured in the ``config/packages/joli_media_easy_admin
37
37
.. code-block:: yaml
38
38
39
39
joli_media_easy_admin:
40
+
pagination:
41
+
per_page: 20
40
42
upload:
41
43
max_files: 10
42
44
max_file_size: 20
@@ -53,6 +55,10 @@ The integration can be configured in the ``config/packages/joli_media_easy_admin
53
55
Configuration Options
54
56
~~~~~~~~~~~~~~~~~~~~~
55
57
58
+
The ``pagination`` section controls how media items are loaded and displayed:
59
+
60
+
- ``per_page``: Number of media items to display per page (default: ``20``). This improves performance for large libraries by loading only a subset of items.
61
+
56
62
The ``upload`` section of the configuration allows you to control the media upload behavior in EasyAdmin:
57
63
58
64
- ``max_files``: Sets the maximum number of files that can be uploaded at once.
@@ -66,8 +72,21 @@ The ``visibility`` section of the configuration allows you to control the visibi
66
72
- ``show_html_code``: Displays the HTML code for embedding media.
67
73
- ``show_markdown_code``: Displays the Markdown code for embedding media.
68
74
69
-
Media library menu item
70
-
-----------------------
75
+
Pagination and Performance
76
+
~~~~~~~~~~~~~~~~~~~~~~~~~~
77
+
78
+
For large media libraries (hundreds or thousands of files), pagination significantly improves performance by loading only a subset of items at a time. The media library uses traditional page navigation with Previous/Next buttons, which is ideal for precise navigation in very large libraries.
79
+
80
+
You can configure the number of items displayed per page:
81
+
82
+
.. code-block:: yaml
83
+
84
+
joli_media_easy_admin:
85
+
pagination:
86
+
per_page: 20
87
+
88
+
Media libray menu item
89
+
----------------------
71
90
72
91
To add a link to the media library in your EasyAdmin menu, you need to use the ``MenuItem::linkToRoute`` method, with the ``joli_media_easy_admin_explore`` route::
Copy file name to clipboardExpand all lines: doc/bridges/sonata-admin.rst
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,13 @@ The integration can be configured in the ``config/packages/joli_media_sonata_adm
37
37
.. code-block:: yaml
38
38
39
39
joli_media_sonata_admin:
40
+
pagination:
41
+
per_page: 25
42
+
upload:
43
+
max_files: 10
44
+
max_file_size: 20
45
+
accepted_files:
46
+
- image/*
40
47
visibility:
41
48
show_variations_stored: true
42
49
show_variations_action_regenerate: true
@@ -46,6 +53,10 @@ The integration can be configured in the ``config/packages/joli_media_sonata_adm
46
53
Configuration Options
47
54
~~~~~~~~~~~~~~~~~~~~~
48
55
56
+
The ``pagination`` section controls how media items are loaded and displayed:
57
+
58
+
- ``per_page``: Number of media items to display per page (default: ``25``). This improves performance for large libraries by loading only a subset of items.
59
+
49
60
The ``upload`` section of the configuration allows you to control the media upload behavior in Sonata admin:
50
61
51
62
- ``max_files``: Sets the maximum number of files that can be uploaded at once.
@@ -59,6 +70,19 @@ The ``visibility`` section of the configuration allows you to control the visibi
59
70
- ``show_html_code``: Displays the HTML code for embedding media.
60
71
- ``show_markdown_code``: Displays the Markdown code for embedding media.
61
72
73
+
Pagination and Performance
74
+
~~~~~~~~~~~~~~~~~~~~~~~~~~
75
+
76
+
For large media libraries (hundreds or thousands of files), pagination significantly improves performance by loading only a subset of items at a time. The media library uses traditional page navigation with Previous/Next buttons, which is ideal for precise navigation in very large libraries.
77
+
78
+
You can configure the number of items displayed per page:
0 commit comments