https://github.com/schlaefer/phileservecontentfiles
Plugin for PhileCMS to serve files from the content/ directory
https://github.com/schlaefer/phileservecontentfiles
philecms philecms-plugin
Last synced: about 1 year ago
JSON representation
Plugin for PhileCMS to serve files from the content/ directory
- Host: GitHub
- URL: https://github.com/schlaefer/phileservecontentfiles
- Owner: Schlaefer
- License: mit
- Created: 2015-03-04T21:31:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2019-05-28T06:18:43.000Z (about 7 years ago)
- Last Synced: 2025-01-31T08:12:56.730Z (over 1 year ago)
- Topics: philecms, philecms-plugin
- Language: PHP
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Serve Content Files Plugin for PhileCMS #
[](https://travis-ci.org/Schlaefer/phileServeContentFiles)
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 the `content/` directory
Note: This plugin trades some performance (potentially serving files through PHP) for convenience (no need to fiddle with the server or content files).
[Project Home](https://github.com/Schlaefer/phileServeContentFiles)
### 1.1 Installation (composer) ###
```json
"require": {
"siezi/phile-serve-content-files": "*"
}
```
### 1.2 Installation (Manual Download)
* Install [Phile](https://github.com/PhileCMS/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:
```php
$config['plugins']['siezi\\phileServeContentFiles'] = ['active' => true];
```
### 3. Configuration ###
See plugin `config.php` file.