Provide routing for content elements

Relates: #10349
This commit is contained in:
Daniel Siepmann 2023-02-16 07:50:29 +01:00
parent c6ad36b294
commit cd42770efe
4 changed files with 71 additions and 1 deletions

View file

@ -0,0 +1,27 @@
# Used for Content Elements = CE
# Works if they all use namespace "events"
routeEnhancers:
EventsDateShow:
type: Extbase
namespace: events
defaultController: 'Date::show'
routes:
-
routePath: '/{date}'
_controller: 'Date::show'
aspects:
date:
type: PersistedAliasMapper
tableName: tx_events_domain_model_date
routeFieldName: slug
EventsPagination:
type: Plugin
namespace: events
routePath: '/{localizedPage}-{currentPage}'
aspects:
localizedPage:
type: LocaleModifier
default: 'page'
localeMap:
- locale: 'de*'
value: 'seite'

View file

@ -1,3 +1,4 @@
# Legacy, used for Plugins
routeEnhancers:
EventsDateShow:
type: Extbase

View file

@ -0,0 +1,42 @@
3.2.0
=====
Breaking
--------
Nothing
Features
--------
* Provide routing for content elements.
Can be included within site configuration:
.. code-block:: yaml
imports:
-
resource: 'EXT:events/Configuration/CeRouting.yaml'
Expects pluginNamespace to be "events":
.. code-block:: typoscript
view {
pluginNamespace = events
}
Fixes
-----
Nothing
Tasks
-----
Nothing
Deprecation
-----------
Nothing

View file

@ -9,7 +9,7 @@ $EM_CONF['events'] = [
'state' => 'alpha',
'createDirs' => '',
'clearCacheOnLoad' => 0,
'version' => '3.1.0',
'version' => '3.2.0',
'constraints' => [
'depends' => [
'typo3' => '10.4.00-11.5.99',