kenshodigital/kirby-file-types
最新稳定版本:1.0.1
Composer 安装命令:
composer require kenshodigital/kirby-file-types
包简介
Adds additional file types from configuration to Kirby projects.
README 文档
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.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-17