Light
Dark
TYPO3 routeEnhancers in yaml
routeEnhancers:
News:
type: Extbase
extension: News
plugin: Pi1
routes:
# /home?tx_news_pi1%5Bcontroller%5D=News&tx_news_pi1%5BcurrentPage%5D=2&cHash=442dded17c981ad4e11a5ed299fd9177
-
routePath: '/news-{page}'
_controller: 'News::list'
_arguments:
page: 'currentPage'
# home/news-2
-
routePath: '/{news-title}'
_controller: 'News::detail'
_arguments:
news-title: news
-
routePath: '/{category-name}'
_controller: 'News::list'
_arguments:
category-name: overwriteDemand/categories
-
routePath: '/{tag-name}'
_controller: 'News::list'
_arguments:
tag-name: overwriteDemand/tags
defaultController: 'News::list'
defaults:
page: '0'
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: slug
tag-name:
type: PersistedAliasMapper
tableName: tx_news_domain_model_tag
routeFieldName: slug
FeloginLogin:
type: Extbase
extension: Felogin
plugin: Login
routes:
-
routePath: /
_controller: 'Login::login'
-
routePath: /recovery
_controller: 'PasswordRecovery::recovery'
defaultController: 'Login::login'
defaults:
page: '0'
IndexedSearch:
type: Extbase
extension: IndexedSearch
plugin: Pi2
routes:
-
routePath: /result/{page}
_controller: 'Search::search'
_arguments:
page: 'currentPage'
defaultController: 'Search::search'
defaults:
page: '0'
aspects:
page:
type: StaticRangeMapper
start: '1'
end: '100'