我正在尝试为 extbase 扩展设置新的语音 URL 路由。但是前端的详细信息链接绝对没有任何反应。
这是我的 yaml 站点配置代码(NewsPlugin 配置工作,但 CardealerPlugin 没有):
routeEnhancers:
NewsPlugin:
type: Extbase
limitToPages: [92,93]
extension: News
plugin: Pi1
routes:
- { routePath: '/{news_title}', _controller: 'News::detail', _arguments: {'news_title': 'news'} }
defaultController: 'News::detail'
aspects:
news_title:
type: PersistedAliasMapper
tableName: 'tx_news_domain_model_news'
routeFieldName: 'title'
routeValuePrefix: '/'
CardealerPlugin:
type: Extbase
limitToPages: [84,90]
extension: Cardealer
plugin: Pi1
routes:
- { routePath: '/{model_description}', _controller: 'Cardealer::show', _arguments: {'model_description': ' car'} }
defaultController: 'Cardealer::show'
aspects:
model_description:
type: PersistedAliasMapper
tableName: 'tx_cardealer_domain_model_car'
routeFieldName: 'model_description'
routeValuePrefix: '/'
extTables.php
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'Cardealer',
'Pi1',
'Cardealer'
);
有人可以帮忙吗?