Skip to content
  1. Extras
  2. modSizeControl
  3. Widget

Widget ​

The dashboard widget shows the results of the last scan: how much the site takes, how much is left before the limit and what the size is made of.

The widget in MODX 3

The ring and the cards ​

When a limit is set, the ring is the limit. The slices are the site categories, and the empty sector is what is left before the limit. Next to it are the Used, Left and Limit cards.

Without a limit, the ring is the site itself, and the cards show Free on the disk and "Limit: not set".

Below, the "What takes up the space" list has the same categories with their size and share. Hovering a slice or a row highlights both. Categories of zero size are left out of the list.

CategoryWhat it includes
MODXThe core, the manager, the connectors and the MODX install package in core/packages
Componentscore/components and assets/components
Mediaassets and file sources
PackagesInstalled package archives in core/packages
Cachecore/cache except logs
Logscore/cache/logs
OtherEverything else: site folders, backups, .git

How full ​

The Used card gets an icon when it is time to pay attention:

  • from 75 % — yellow;
  • from 90 % — orange;
  • over 100 % — red. A "Site size limit exceeded" message appears above the ring, and the Left card turns into "Over the limit by".

If the server disk has less free space than the limit leaves, a warning appears under the cards: the limit cannot actually be reached.

Buttons ​

Refresh starts a scan right in the widget, without going to the page. Details opens the component page.

Only a user with the settings permission sees both. Others see the figures of the last scan, and before the first scan, a hint that a user with access to the system settings can scan the site.

MODX 2 ​

The widget looks the same in MODX 2.

The widget in MODX 2

If the widget is gone ​

On the first install the widget is added last to the main dashboard. A package upgrade does not bring it back: if someone removed the widget, it was meant to be.

To add it again, use the standard way: the Add Widget button on the dashboard in MODX 3, or Dashboards in the gear menu in MODX 2. The widget is called modSizeControl.