Add 'Disabling modules'

chris 2021-09-02 14:03:25 +02:00
parent 57fc5a2e6f
commit 8333147090
1 changed files with 31 additions and 0 deletions

31
Disabling-modules.md Normal file

@ -0,0 +1,31 @@
Omeka comes with many modules as part of the core. However, some of them are replaced by modules we have developed.
## youtube
The youtube module is replaced by our (https://git.hangar.org/arcHIVE-tech/oEmbed-omeka-module)[oEmbed-omeka-module]
Do disable the youtube module edit `/application/config/module.config.php` and comment out these two lines as so:
```
'media_ingesters' => [
'factories' => [
'upload' => Service\Media\Ingester\UploadFactory::class,
'url' => Service\Media\Ingester\UrlFactory::class,
'html' => Service\Media\Ingester\HtmlFactory::class,
'iiif' => Service\Media\Ingester\IIIFFactory::class,
'oembed' => Service\Media\Ingester\OEmbedFactory::class,
//'youtube' => Service\Media\Ingester\YoutubeFactory::class,
],
],
'media_renderers' => [
'invokables' => [
'oembed' => Media\Renderer\OEmbed::class,
//'youtube' => Media\Renderer\Youtube::class,
'html' => Media\Renderer\Html::class,
'iiif' => Media\Renderer\IIIF::class,
],
'factories' => [
'file' => Service\Media\Renderer\FileFactory::class,
],
],
```