Feature #77228
closedMake the widget parameter used by fluid widgets configurable
0%
Description
Currently the widget parameter is generated deep in the fluid code and it isn't possible to override this with a own 'static' value.
Possible use-cases:
1) have 2 optional widgets in the same plugin
2) have 2 same plugins with a widget on the same page
Example of this with a proof of concept:
https://bitbucket.org/franssaris/fs_media_gallery
Template with 2 pagination plugins.
First widget: https://bitbucket.org/franssaris/fs_media_gallery/src/4cc650d85668069c24884ff4cb60b2fcc3ad5ee1/Resources/Private/Templates/MediaAlbum/NestedList.html?at=master&fileviewer=file-view-default#NestedList.html-21
Second widget: https://bitbucket.org/franssaris/fs_media_gallery/src/4cc650d85668069c24884ff4cb60b2fcc3ad5ee1/Resources/Private/Partials/MediaAlbum/NestedList/AlbumsList.html?at=master&fileviewer=file-view-default#AlbumsList.html-10
Adjusted AbstractWidgetViewHelper https://bitbucket.org/franssaris/fs_media_gallery/src/4cc650d85668069c24884ff4cb60b2fcc3ad5ee1/Classes/ViewHelpers/Widget/AbstractWidgetViewHelper.php?at=master&fileviewer=file-view-default#AbstractWidgetViewHelper.php-214