kenshodigital / kirby-file-types
Adds additional file types from configuration to Kirby projects.
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:kirby-plugin
Requires
- php: ^8.3
- getkirby/cms: ^4.1
- getkirby/composer-installer: ^1.2
README
Adds additional supported file types from configuration to Kirby projects.
General
Kirby offers plenty of configuration options to modify the system’s behavior in an easy and straightforward way based on your project specific requirements. Registering additional file types, however, requires the creation of a dedicated plugin by default.
This is actually easy enough, but still feels like overkill sometimes. So this plugin adds file types to the configuration options.
Installation
composer require kenshodigital/kirby-file-types ^1.0
Usage
Just add your file types directly to your config.php
.
<?php declare(strict_types=1); return [ 'fileTypes' => [ 'vtt' => [ 'mime' => 'text/vtt', 'type' => 'document', ], ], ... ];
This example adds support for WebVTT files to a project.