lochmueller/calendarize-news

将事件选项添加到新闻扩展

7.1.0 2023-08-22 18:29 UTC

This package is auto-updated.

Last update: 2024-09-12 21:42:46 UTC


README

Build Status Scrutinizer Code Quality

配置

请设置新闻默认PID "plugin.tx_news.settings.defaultDetailPid" 或在calendarize插件配置中设置详细页面ID!

路由配置示例

基于此问题 #30

NewsDetail:
  type: Extbase
  extension: News
  plugin: Pi1
  routes:
    -
      routePath: '/{news_title}'
      _controller: 'News::detail'
      _arguments:
        news_title: news
    -
      routePath: '/{news_title}-{index}'
      _controller: 'News::detail'
      _arguments:
        news_title: news
        calendarize_index: index
  defaultController: 'News::detail'
  aspects:
    news_title:
      type: PersistedPatternMapper
      tableName: tx_news_domain_model_news
      routeFieldPattern: '^(?P<path_segment>.+)-(?P<uid>\d+)$'
      routeFieldResult: '{path_segment}-{uid}'
    calendarize_index:
      type: PersistedAliasMapper
      tableName: tx_calendarize_domain_model_index
      routeFieldName: uid