From 2f20874d2ea81a6bc1f7005ac57c92526f2355e0 Mon Sep 17 00:00:00 2001
From: Kevin Ditscheid <kevin.ditscheid@sgalinski.de>
Date: Mon, 6 Sep 2021 11:44:01 +0200
Subject: [PATCH] [TASK] Add a route configuration that can be imported in
 siteConfiguration

---
 Configuration/Routes/config.yaml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 Configuration/Routes/config.yaml

diff --git a/Configuration/Routes/config.yaml b/Configuration/Routes/config.yaml
new file mode 100644
index 0000000..63f43e4
--- /dev/null
+++ b/Configuration/Routes/config.yaml
@@ -0,0 +1,29 @@
+routeEnhancers:
+  PageBrowserNews:
+    type: Plugin
+    namespace: tx_sgnews_pagebrowser
+    routePath: '/{localizedSegment}/{currentPage}'
+    aspects:
+      localizedSegment:
+        type: LocaleModifier
+        default: page
+        localeMap:
+          -
+            locale: 'de_DE.*'
+            value: seite
+  NewsByAuthor:
+    type: Extbase
+    extension: SgNews
+    plugin: NewsByAuthor
+    routes:
+      -
+        routePath: '/{authorTitle}'
+        _controller: 'NewsByAuthor::list'
+        _arguments:
+          authorTitle: authorId
+    defaultController: 'NewsByAuthor::list'
+    aspects:
+      authorTitle:
+        type: PersistedAliasMapper
+        tableName: tx_sgnews_domain_model_author
+        routeFieldName: path_segment
-- 
GitLab