【发布时间】:2020-08-04 12:27:46
【问题描述】:
在我的 TYPO3 10.4.6 安装中,我无法让列表路由增强器为 sf_event_mgt 5.0.1 工作。所有其他路线似乎都有效(详细信息、注册等),但列表,而不是仅仅链接列表插件页面,生成一个链接到
/veranstaltungen-1?tx_sfeventmgt_pievent%5Baction%5D=list&tx_sfeventmgt_pievent%5Bcontroller%5D=Event&cHash=19b6ef72f7fdbb2f7bc9269ab3ea3446
我正在使用extension documentation 中提供的确切配置。 (当然页面 uid 除外)
我还尝试为 tx_news 过去所做的列表操作添加插件路由增强器,并将列表路由更改为“/”以外的其他内容,但无济于事。
EventList:
type: Plugin
routePath: '/{@widget_0/currentPage}'
namespace: tx_sfeventmgt_pievent
aspects:
'@widget_0/currentPage':
type: StaticRangeMapper
start: '1'
end: '1000'
作为文档中 sf_event_mgt 配置的一部分:
…
routes:
- { routePath: '/list/{page}', _controller: 'Event::list', _arguments: {'page': '@widget_0/currentPage'} }
…
我没有费心检查参数目标是否正确,因为路由无论如何都不起作用,即使没有任何参数。
相比之下,新闻的路由配置就像一个魅力
NewsList:
type: Plugin
routePath: '/{@widget_0/currentPage}'
namespace: tx_news_pi1
aspects:
'@widget_0/currentPage':
type: StaticRangeMapper
start: '1'
end: '1000'
我们将不胜感激。
【问题讨论】:
标签: typo3 extbase typo3-extensions