Feature #48128
closed
AbstractWidgetViewHelper should support section
Added by Dave no-lastname-given over 11 years ago.
Updated about 9 years ago.
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}">
- Project changed from 2559 to TYPO3 Core
- Category changed from Fluid: Widgets to Fluid
- 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".
Also available in: Atom
PDF