带有多个插件的Ext:news中的口语URL

问题描述

当一页上有两个新闻插件(TYPO3 v9.5.20)时,新闻的站点配置有问题。有一个列表视图和一个标签列表,作为标签的导航([screenshot1] [1])。在列表视图中,我可以单击标签,并且仅显示带有这些标签的新闻。这行得通,URL合适。所以一切都很好。 但是,如果我激活标签列表插件,则会出现错误([screenshot2] [2]):The controller "News" is not allowed by plugin "Pi1". Please check for TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin() in your ext_localconf.PHP.

config.yaml中的站点配置如下:

routeEnhancers:
  News:
    type: Extbase
    limitToPages:
      - 141
      - 142
    extension: News
    plugin: Pi1
    routes:
      - routePath: 'page/{page}'
        _controller: 'News::list'
        _arguments:
          page: '@widget_0/currentPage'
      - 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


  [1]: https://i.stack.imgur.com/LsFux.png
  [2]: https://i.stack.imgur.com/H2IZn.png

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)