Task #8442
Fluid ViewHelper <f:render> should support same-template section rendering
Status: | Resolved | Start date: | 2010-06-22 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Sebastian Kurfuerst | % Done: | 100% |
|
Category: | - | |||
Target version: | - | Estimated time: | 5.00 hours |
Description
For menu generation, we to change the way sections are rendered in Fluid, so the following should be possible inside a template:
<f:render section="itemList" arguments="{items: items}" /> <f:section name="itemList"> <ul> <f:for each="{items}" as="item"> <li><f:link.action package="TYPO3" controller="Frontend\Page" action="show" arguments="{page: '{item.nodePath}'}">{item.label}</f:link.action> <f:if condition="{item.subItems}"> <f:render section="itemList" arguments="{items: item.subItems}" /> </f:if> </li> </f:for> </ul> </f:section>
As this part is somehow hacky anyways inside TemplateView, it needs to be cleaned up.
The following cases need to be tested separately:
- <f:render section="foo" /> in a Layout
- should render section in TEMPLATE
- should use variables of TEMPLATE
- <f:render partial="foo" /> (no matter where)
- should render the given partial EVERYWHERE
- arguments need to be passed explicitely
- <f:render section="foo" /> in a Partial
- should use section in same PARTIAL
- arguments need to be passed explicitely
- <f:render section="foo" /> in a Template
- should use section in same TEMPLATE
- arguments need to be passed explicitely
- <f:render partial="foo" section="bla"/>
- should use section of given partial
- arguments need to be passed explicitely
Related issues
History
#1 Updated by Sebastian Kurfuerst about 5 years ago
committed with r4607
#2 Updated by Sebastian Kurfuerst about 5 years ago
- Subject changed from Fluid ViewHelper <f:render> should support same-section rendering to Fluid ViewHelper <f:render> should support same-template section rendering
#3 Updated by Robert Lemke about 4 years ago
- Project changed from Core Team to Base Distribution
- Target version deleted (
550) - Remaining (hours) set to 5.0
#4 Updated by Robert Lemke almost 3 years ago
- Project changed from Base Distribution to TYPO3.Neos