Project

General

Profile

Actions

Feature #48128

closed

AbstractWidgetViewHelper should support section

Added by Dave no-lastname-given over 11 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2013-05-13
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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}">

Actions #1

Updated by Alexander Opitz about 10 years ago

  • Project changed from 2559 to TYPO3 Core
  • Category changed from Fluid: Widgets to Fluid
Actions #2

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".

Actions

Also available in: Atom PDF