PolyCMS Plugin Management
Plugin System Overview
Plugins extend PolyCMS functionality without modifying core code. Navigate to Blog > Plugins to manage all installed plugins.
Plugin Listing
The Plugins page displays all installed plugins with:
- Plugin name, version, and author
- Short description
- Active/Inactive status
- Activate/Deactivate toggle
- Settings link (if the plugin has a settings page)
- Grid and List view modes
Installing Plugins
ZIP Upload
- Navigate to Blog > Plugins.
- Click Upload Plugin.
- Select a
.zipfile containing the plugin package. - PolyCMS validates, scans for security threats, and extracts the plugin to
modules/polycms/plugins/. - After installation, click Activate to enable the plugin.
Manual Installation
Upload the plugin folder directly to modules/polycms/plugins/ via FTP.
Plugin Security
ZIP uploads undergo security scanning:
- Dangerous PHP function detection and stripping
- File extension validation
- Directory traversal prevention via
polycms_validate_file_path
Bundled Plugins
PolyCMS ships with 5 production-ready plugins:
| Plugin | Description |
|---|---|
| XML Sitemap | Auto-generates dynamic sitemap.xml for search engines |
| Google Analytics | GA4/UA tracking code injection |
| Maintenance Mode | "Under Maintenance" page for visitors |
| Banner Slider | Responsive image carousels |
| MTOptimize | Frontend asset and image optimization |
Plugin Settings
Active plugins that register settings pages display a Settings link in the plugin listing. Each plugin manages its own configuration independently via the blog_plugin_options database table.
Plugin Architecture
Each plugin resides in its own directory:
modules/polycms/plugins/
├── xml-sitemap/
│ ├── plugin.json ← Plugin metadata
│ ├── xml-sitemap.php ← Main plugin file
│ ├── language/ ← Translation files
│ └── assets/ ← CSS/JS assets
├── google-analytics/
└── maintenance-mode/
Plugins interact with PolyCMS core through the Hook & Filter system, registering actions and filters to extend functionality.
Related Documentation
- Building a Custom Plugin — Developer guide for creating plugins from scratch.
- Hooks & Filters Reference — Complete API documentation for available hooks.