Project

General

Profile

Actions

Feature #86875

closed

Feature request: Fall through for f:switch ViewHelper

Added by Thomas Anders about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2018-11-07
Due date:
% Done:

0%

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

Description

A fall throug option for f:switch viewhelper would be a very nice to have.

Something like:

<f:switch expression="{expr}">

    <f:case value="val1"/>
    <f:case value="val2"/>
    <f:case value="val3">
        on one of this cases
    </f:case>

    <f:case value="val4">
        on val4
    </f:case>

    <f:defaultCase>
        default
    </f:case>

</f:switch>

Or maybe

<f:switch expression="{expr}">

    <f:case value="val1" fallthrough="val3"/>
    <f:case value="val2" fallthrough="val3"/>
    <f:case value="val3">
        on one of this cases
    </f:case>

    <f:case value="val4">
        on val4
    </f:case>

    <f:defaultCase>
        default
    </f:case>

</f:switch>

that would help in many cases where the same result should come out.

Actions #1

Updated by Thomas Anders about 6 years ago

Created the Request on GitHub:
https://github.com/TYPO3/Fluid/issues/417

Actions #2

Updated by Georg Ringer about 6 years ago

  • Status changed from New to Closed

I am closing it in this issue tracker as it is a fluid feature

Actions

Also available in: Atom PDF