siezi / phile-serve-content-files
Plugin for PhileCMS to serve files from the content/ directory
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:phile-plugin
Requires
- phile-cms/phile: ^1.11
- phile-cms/plugin-installer-plugin: ^1.0 || dev-develop
Requires (Dev)
- phpunit/phpunit: ^7.0
Suggests
- siezi/phile-total-cache: caching for improved performance
This package is auto-updated.
Last update: 2024-11-29 04:04:31 UTC
README
This plugin tries some magicâ„¢ to directly serve additional files from the content/
directory:
- change HTML output and insert
content/
if it's missing in URLs - serve requests without
content/
in URL from thecontent/
directory
Note: This plugin trades some performance (potentially serving files through PHP) for convenience (no need to fiddle with the server or content files).
1.1 Installation (composer)
"require": { "siezi/phile-serve-content-files": "*" }
1.2 Installation (Manual Download)
- Install Phile
- copy this plugin into
plugins/siezi/phileServeContentFiles
2. Activation
After you have installed the plugin you need to activate it. Add the following line to Phile's root config.php
file:
$config['plugins']['siezi\\phileServeContentFiles'] = ['active' => true];
3. Configuration
See plugin config.php
file.