Project

General

Profile

Actions

Bug #99501

open

Allow more than 1 plugin handling an action

Added by Georg Ringer almost 2 years ago. Updated about 1 month ago.

Status:
Under Review
Priority:
Should have
Assignee:
Category:
Extbase
Start date:
2023-01-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If an extension provides multiple plugins allowing the same action, an exception is thrown

There is more than one plugin that can handle this request (Extension: "News", Controller: "News", action: "list"). Please specify "pluginName" argument

Especially with the drop of switchablecontrolleractions, extensions like news split the features into various plugins. In this usecase there are 2 plugins using the same action list. To avoid issues with the plugin namespace in the request all plugins share the same namespace using

plugin {
        tx_news_newsliststicky.view.pluginNamespace = tx_news_pi1
        tx_news_newsdetail.view.pluginNamespace = tx_news_pi1
        tx_news_newsselectedlist.view.pluginNamespace = tx_news_pi1
        tx_news_newsdatemenu.view.pluginNamespace = tx_news_pi1
        tx_news_categorylist.view.pluginNamespace = tx_news_pi1
        tx_news_newssearchform.view.pluginNamespace = tx_news_pi1
        tx_news_newssearchresult.view.pluginNamespace = tx_news_pi1
        tx_news_taglist.view.pluginNamespace = tx_news_pi1
    }

Having now a datemenu with a template part like

<f:link.action 
  action="list" 
  pageUid="{listPid}" arguments="{overwriteDemand:{year: year, month: month}}">
     <f:translate key="month.{month}" /> {year}
</f:link.action>

it is up to the editor which plugin will handle the list action.

I propose removing the exception. issues has been derived from https://github.com/georgringer/news/pull/1982

Actions #1

Updated by Gerrit Code Review almost 2 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77294

Actions #2

Updated by Georg Ringer almost 2 years ago

  • Description updated (diff)
Actions #3

Updated by Gerrit Code Review almost 2 years ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77294

Actions #4

Updated by Gerrit Code Review almost 2 years ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77294

Actions #5

Updated by Gerrit Code Review almost 2 years ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77294

Actions #6

Updated by Gerrit Code Review almost 2 years ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77294

Actions #7

Updated by Gerrit Code Review over 1 year ago

Patch set 6 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77294

Actions #8

Updated by Gerrit Code Review about 1 month ago

Patch set 7 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/77294

Actions

Also available in: Atom PDF