Skip to content
  1. Extras
  2. StaticSaver

StaticSaver

StaticSaver is a plugin for MODX Revolution that automatically sets file names and media source for elements (templates, chunks, snippets, TVs, or plugins) when you make them static. Useful for developers using local IDEs.

Installation and setup

Install the package via Package Management from the official Repository.

After that you need to configure File Media Sources and System Settings. Find the required settings using the namespace filter "staticsaver".

A detailed setup video for StaticSaver can be watched on YouTube.

StaticSaver system settings

NameDefaultDescription
staticsaver.include_categoryfalseAdds a folder with the category name to the element path. E.g. snippet MySnippet in category MyCategory will be at media_source_path/MyCategory/MySnippet.php
staticsaver.static_defaultfalseAll elements are set to static automatically when opening the element edit form.
staticsaver.static_file_extensionphpFile extension for all elements. Has highest priority. Set empty to configure different extensions per element type.
staticsaver.static_chunk_file_extensionphpChunk file extension. See static_file_extension.
staticsaver.static_plugin_file_extensionphpPlugin file extension. See static_file_extension.
staticsaver.static_snippet_file_extensionphpSnippet file extension. See static_file_extension.
staticsaver.static_template_file_extensionphpTemplate file extension. See static_file_extension.
staticsaver.static_tv_file_extensionphpTV file extension. See static_file_extension.
staticsaver.static_chunk_media_source1Chunk media source.
staticsaver.static_plugin_media_source1Plugin media source.
staticsaver.static_snippet_media_source1Snippet media source.
staticsaver.static_template_media_source1Template media source.
staticsaver.static_tv_media_source1TV media source.

Extra development

Report suggestions and issues with StaticSaver on GitHub.

Future plans

  • Automatic creation of media sources on install
  • Fewer settings by moving them to JSON format