arc-hive-site-omeka-module/config/module.config.php

80 lines
3.0 KiB
PHP
Raw Normal View History

2021-05-04 10:55:27 +02:00
<?php
use Laminas\Router\Http\Literal;
2021-05-04 10:55:27 +02:00
namespace ArchiveSiteMeta;
return [
//https://docs.laminas.dev/tutorials/getting-started/routing-and-controllers/
'router' => [
'routes' => [
'archiveSiteMeta' => [
2021-11-03 21:43:15 +01:00
//'type' => \Laminas\Router\Http\Segment::class,
'type' => \Laminas\Router\Http\Literal::class,
'options' => [
2021-11-04 12:12:41 +01:00
'route' => '/api/collections/search',
'defaults' => [
2021-10-24 22:42:03 +02:00
'__NAMESPACE__' => 'ArchiveSiteMeta\Controller',
'controller' => Controller\ArchiveSiteMetaController::class,
'action' => 'index',
],
],
],
],
],
2021-10-24 22:42:03 +02:00
'controllers' => [
'invokables' => [
Controller\ArchiveSiteMetaController::class => Controller\ArchiveSiteMetaController::class,
],
],
2021-05-04 10:55:27 +02:00
'view_manager' => [
'template_path_stack' => [
dirname(__DIR__) . '/view',
],
2021-10-24 23:55:07 +02:00
'strategies' => [
'ViewJsonStrategy',
],
2021-05-04 10:55:27 +02:00
'template_map' => [
// used to remove available blocks when editing a page
'omeka/site-admin/page/edit' => __DIR__ . '/../../../themes/archive/view/omeka/site-admin/page/edit.phtml',
2021-10-24 23:55:07 +02:00
//'archive-site-meta/archive-site-meta/index' => __DIR__ . '/../view/collections/index.phtml',
2021-05-08 14:09:58 +02:00
//'layout/layout' => __DIR__ . '/../../../themes/archive/view/layout/layout.phtml',
//'omeka/index/index' => __DIR__ . '/../../../themes/archive/view/omeka/site/index/index.phtml',
//'omeka/search/results' => __DIR__ . '/../../../themes/archive/view/omeka/search/results.phtml',
//'common/site-list-entry' => __DIR__ . '/../../../themes/archive/view/common/site-list-entry.phtml',
2021-05-04 10:55:27 +02:00
],
],
'view_helpers' => [
'factories' => [
'archiveSiteMeta' => Service\ViewHelper\ArchiveSiteMetaViewHelperFactory::class,
//'archiveSiteMeta' => View\Helper\ArchiveSiteMeta::class,
//'siteCollections' => View\Helper\SiteCollections::class,
2021-05-04 10:55:27 +02:00
],
],
'block_layouts' => [
'factories' => [
'archiveSiteMeta' => Service\BlockLayout\ArchiveSiteMetaFactory::class,
],
],
'form_elements' => [
'invokables' => [
Form\ArchiveSiteMetaBlockForm::class => Form\ArchiveSiteMetaBlockForm::class,
],
'factories' => [
Form\ConfigForm::class => Service\Form\ConfigFormFactory::class,
],
],
'config' => [
'SiteMeta' => [
'sitemeta_collections' => '',
],
],
'DefaultSettings' => [
'ArchiveSiteMetaBlockForm' => [
'page_type' => 'home',
'currator' => '',
'project_date' => '',
'collection' => '',
'wrapStyle' => 'overflow-y: hidden;display: flex;flex-direction: column;justify-content: center;',
],
]
];