georgringer / news

TYPO3 Extension news
GNU General Public License v2.0
265 stars 355 forks source link

News DateMenu and List doesn't work on same page #2124

Closed gocher68 closed 1 year ago

gocher68 commented 1 year ago

Bug Report

Current Behavior There is one plugin news_newsdatemenu and one news_newsliststicky on same page, without any overwriteDemand values like year and month both plugins displays the expected content (DateMenu and NewsList), with overwriteDemand values both plugins displays the NewsList.

Expected behavior/output The news_newsdatemenu plugin should display the DateMenu with active year month selection.

Environment

Additional context It looks like the action is being overwritten by the request parms. This error appeared after an update from an older TYPO3 version.

gocher68 commented 1 year ago

Sorry, no Bug it was a incorrect configuration

georgringer commented 1 year ago

just out of curiosity and because others might ask as well: what was the wrong configuration and what the solution? thanks for helping others

gocher68 commented 1 year ago

The plugin configuration was overwritten in a other extension.

ExtensionUtility::configurePlugin(
        'News',
        'NewsDateMenu',
        [
            NewsController::class => 'dateMenu, list',
        ],
        [
            NewsController::class => 'dateMenu, list',
        ],
        ExtensionUtility::PLUGIN_TYPE_CONTENT_ELEMENT
    );