Free
Download the package from the manager of your site.
How to download?
How to download?
Warning! This component requires PHP version
8.0
or higher!
If your site uses PHP less than required, the installation of this
package could break it.
Warning! This package requires MODX not less than
3.0
!
StaticFilesPlus is a plugin for MODX 3 that automatically saves chunks, templates, snippets, and plugins as static files when they are edited in the manager.
Why is this needed?
When working with code in an IDE (PhpStorm, VS Code), it is convenient to have physical files for MODX elements. The plugin creates them automatically, eliminating the need to manually create files and assign the static_file property.
Features
File structure
The plugin creates a clear hierarchy:
⚙️ Compatibility & requirements
Why is this needed?
When working with code in an IDE (PhpStorm, VS Code), it is convenient to have physical files for MODX elements. The plugin creates them automatically, eliminating the need to manually create files and assign the static_file property.
The plugin was created as a practical solution for working with components that, by their design, rely only on “regular” chunks and templates stored in the MODX manager and do not support a file-based project structure. In particular, PageBlocks (Free) requires chunks to exist in the system, and MIGX, which is often used as a page/block builder, also works only with elements stored in the database. The plugin removes this limitation by automatically synchronizing such elements with static files.
Features
- Automation. Save an element in the manager — the file is created automatically.
- Category structure. Files are placed into folders that mirror the MODX category tree.
- Transliteration. Russian category names are converted into readable paths (e.g.: Дизайн сайта → dizayn_sayta).
- Flexibility. Uses the system setting pdotools_elements_path or the default path (core/elements/).
- Smart installation. During installation, you can choose which element types (chunks, snippets, etc.) the plugin will handle.
File structure
The plugin creates a clear hierarchy:
core/elements/
├── chunks/
│ ├── header/
│ │ └── mainMenu.tpl
│ └── dizayn_sayta/
│ └── colors.tpl
├── snippets/
│ └── helpers/
│ └── getPrice.php⚙️ Compatibility & requirements
- MODX Revolution 3.0+
- PHP 8.0+
