Passend analog zu dem tt_address-Beitrag hier die Config.yaml für news mit einer schönen URL auf der Webseite.
base: 'https://domain.ltd/' baseVariants: { } errorHandling: { } languages: - title: Deutsch enabled: true base: /de/ typo3Language: de locale: de_DE.UTF-8 iso-639-1: de navigationTitle: Deutsch hreflang: de-DE direction: '' flag: de languageId: '0' - title: English enabled: true base: /en/ typo3Language: default locale: en_US.UTF-8 iso-639-1: en navigationTitle: English hreflang: en-US direction: '' fallbackType: strict fallbacks: '1,0' flag: en-us-gb languageId: '1' rootPageId: 1 routeEnhancers: PageTypeSuffix: type: PageType default: / index: '' map: sitemap.xml: 1533906435 yoast-snippetpreview.json: 1480321830 /: 0 ### NEWS START News: type: Extbase extension: News plugin: Pi1 limitToPages: - 24 routes: - routePath: '/list/{page}' _controller: 'News::list' _arguments: page: '@widget_0/currentPage' - routePath: '/tag/{tag_name}' _controller: 'News::list' _arguments: tag_name: overwriteDemand/tags - routePath: '/blog/{news_title}' _controller: 'News::detail' _arguments: news_title: news - routePath: '/archive/{year}/{month}' _controller: 'News::archive' defaultController: 'News::list' defaults: page: '0' requirements: news_title: '^[a-zA-Z0-9].*$' page: \d+ aspects: news_title: type: PersistedAliasMapper tableName: tx_news_domain_model_news routeFieldName: path_segment page: type: StaticRangeMapper start: '1' end: '100' category_name: type: PersistedAliasMapper tableName: sys_category routeFieldName: title ### NEWS ENDE routes: - route: robots.txt type: staticText content: "User-agent: *\r\nDisallow: /typo3/\r\nDisallow: /typo3_src/\r\nAllow: /typo3/sysext/frontend/Resources/Public/*\r\n"
Schreibe einen Kommentar