-
-
- Submit Updated Articles to Bing and Yandex with IndexNow in Joomla
- Add Published and Modified Date Meta Tags to Joomla
- Add Open Graph and Twitter Card Tags to Joomla
- Auto-Generate Meta Descriptions from Article Text in Joomla
- Add Noindex to Specific Pages in Joomla
- Verify Your Joomla Site with Google Search Console
-
- Add a View as Markdown Link to Joomla Articles
- Display the Last Modified Date in Joomla Articles
- Embed Iframes in Joomla
- Automatically Link Twitter (X) @mentions in Joomla Articles
- Open External Links in a New Tab in Joomla
- Display Estimated Reading Time in Joomla Articles
- Replace Old URLs in Joomla
- Search and Replace in Joomla
-
- Add a Footer Line to the Joomla Administrator
- Show a Staging Banner in the Joomla Administrator
- Remove the "All" Option from Admin List Limits in Joomla
- Add a Cookie Consent Banner to Joomla
- Make the Administrator Navigation Sticky in Joomla
- Add Google Fonts to Joomla
- Add a Facebook Messenger Chat Button to Joomla
- Add a Reading Progress Bar to Joomla
- Add a Custom Scrollbar to Joomla
- Show Confetti on a Thank You Page in Joomla
- Add Smooth Scrolling to Joomla
- Add a Back to Top Button in Joomla
- Add a WhatsApp Chat Button in Joomla
-
- Protect the Administrator with a Secret URL Key in Joomla
- Show a Welcome Message on First Login in Joomla
- Log Out Idle Administrators in Joomla
- Assign New Users to a Different User Group Automatically in Joomla
- Redirect Visitors by Country in Joomla
- Redirect Users After Login by User Group in Joomla
- Block User Registration with Certain Usernames in Joomla
- Block User Registration by Country in Joomla
- Block User Registration by Email Address in Joomla
- Block User Registration by IP Address in Joomla
- Remove the Forgot Password and Username Links in Joomla
- Remove the Generator Meta Tag in Joomla
- Let Users Log In with Their Email Address in Joomla
- Block Traffic by Country in Joomla
- Block Bot Traffic in Joomla
- Block Traffic by IP Address in Joomla
Remove the "All" Option from Admin List Limits in Joomla
Take the "All" choice out of the list limit dropdown on every Joomla admin screen, so no one loads thousands of rows at once, using one JavaScript snippet.
Every list in the Joomla administrator has a dropdown that sets how many rows to show, and its last choice is All. On a site with a few thousand articles, users or menu items, one click on it builds a page so big the browser hangs, and the choice is remembered, so the next visit to that list hangs too. Joomla has no setting to take the option away. You can remove it from every list with one JavaScript snippet in Code Snippets.
The JavaScript snippet code
Set Code Type to JavaScript, then use this snippet. On every administrator page it finds the list limit dropdowns and removes their All option. A list that was already set to All switches to the largest limit left, 500, and reloads once with it.
// Removes "All" from the list limit dropdown of every administrator list.
// A list that was already showing all items switches to the largest limit.
document.querySelectorAll('select[name="list[limit]"]').forEach(function (select) {
var all = select.querySelector('option[value="0"]');
if (!all)
{
return;
}
var wasAll = all.selected;
all.remove();
if (wasAll)
{
select.value = select.options[select.options.length - 1].value;
select.form.submit();
}
});
The default limit for new lists stays whatever Default List Limit says in your Global Configuration.
How to add this snippet
- Install Code Snippets if it isn't installed already.
- Log into your Joomla backend.
- Go to Components → Tassos Code Snippets.
- Click New.
- Enter a title, for example No "All" list limit.
- Set Code Type to JavaScript.
- Set Insertion Method to Auto-Insert Locations.
- Set Location to Admin Footer.
- Paste the code above into the editor.
- Click Save & Close.
Admin locations are part of Code Snippets Pro.
Check that it works
- Go to Content → Articles.
- Open the list limit dropdown at the top right of the list.
The choices stop at 500. The same is true under Users, Menus and every other list. The dropdowns on the frontend of your site are not touched.
To learn more about how JavaScript snippets work, read the JavaScript snippet docs.