sf_event_mgt 的路线增强器

Route Enhancer for sf_event_mgt

我无法在我的 TYPO3 10.4.6 安装中获得适用于 sf_event_mgt 5.0.1 的列表路由增强器。所有其他路线似乎都有效(细节、注册等)但是列表,而不是仅仅 linking 列表插件页面,生成一个 link 到

/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'

不胜感激。

我是 sf_event_mgt 的作者。我认为您的路由配置可能存在问题,因为您将页面方面的键定义为 @widget_0/currentPage(包括斜杠)。

以下配置应该可以在 TYPO3 10.4.6 上使用最新版本的扩展正常工作:

EventPlugin:
  type: Extbase
  limitToPages: [3,4,5]
  extension: SfEventMgt
  plugin: Pievent
  routes:
    - { routePath: '/{page}', _controller: 'Event::list', _arguments: {page: '@widget_0/currentPage'} }
  defaultController: 'Event::list'
  defaults:
    page: '1'
  requirements:
    page: '\d+'
  aspects:
    page:
      type: StaticRangeMapper
      start: '1'
      end: '100'