georgringer / routing-with-not-found-records
Allow not found records in PersistedAliasMapper
Fund package maintenance!
georgringer
paypal.me/GeorgRinger/10
www.amazon.de/hz/wishlist/ls/8F573K08TSDG
Patreon
Installs: 47
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- typo3/cms-core: ^10 || ^11
README
This extension makes it possible to use the PersistedAliasMapper
and missing records.
A typical use case is eg. EXT:news with a news record. If the record is being hidden, deleted or start/endtime are reached, the extension can now again handle that instead of triggering a page not found error.
Usage
- Install with
composer req georgringer/routing-with-not-found-records
. - Replace
PersistedAliasMapper
withPersistedAliasMapperWithNotFoundRecords
in your routing config.
Full example
routeEnhancers: News: type: Extbase extension: News plugin: Pi1 routes: - routePath: '/{news-title}' _controller: 'News::detail' _arguments: news-title: news aspects: news-title: type: PersistedAliasMapperWithNotFoundRecords tableName: tx_news_domain_model_news routeFieldName: path_segment