georgringer / routing-with-not-found-records
Allow not found records in PersistedAliasMapper
Package info
github.com/georgringer/routing_with_not_found_records
Type:typo3-cms-extension
pkg:composer/georgringer/routing-with-not-found-records
Fund package maintenance!
1.0.0
2022-01-27 11:24 UTC
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
PersistedAliasMapperwithPersistedAliasMapperWithNotFoundRecordsin 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