Feature #48128
closedAbstractWidgetViewHelper should support section
0%
Description
It would be nice if it was possible to set a template section name on a widget.
<n:widget.paginate section="{mySection}" objects="{news}" as="paginatedNews" configuration="{settings.list.paginate}">
Updated by Alexander Opitz about 10 years ago
- Project changed from 2559 to TYPO3 Core
- Category changed from Fluid: Widgets to Fluid
Updated by Claus Due about 9 years ago
- Status changed from New to Closed
This would be contrary to API: the Widget template is indeed a "Template" which means that if you want to render a section there, you need to use a Layout. The Widget creates a View, and a View doesn't (yet) have methods to render sections this way. But a Layout can be used in Widgets and can render a section (with name of section being a dynamic variable for example). And you can even use this trick without a Layout simply by creating X sections and using f:render from the widget template (although that imposes some limitations on for example wrapping tags using xmlns).
Closing as "has multiple alternatives for same goal, conflicts with MVC API of Extbase".