Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TYPO3/Fluid
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.10.1
Choose a base ref
...
head repository: TYPO3/Fluid
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.11.0
Choose a head ref
  • 10 commits
  • 21 files changed
  • 6 contributors

Commits on Jan 2, 2024

  1. Configuration menu
    Copy the full SHA
    db88127 View commit details
    Browse the repository at this point in the history
  2. [DOCS] Document and add tests for not (!) operator (#852)

    Co-authored-by: Simon Praetorius <simon@praetorius.me>
    simonschaufi and s2b authored Jan 2, 2024
    Configuration menu
    Copy the full SHA
    aa81073 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2024

  1. [DOCS] Make IfViewHelper usage documentation clearer (#855)

    We can't easily link to [1] due to versioning, so the
    auto-generated code is updated to reflect some more
    implementation details.
    
    Also some rephrasing to make things easier to read.
    
    [1] https://docs.typo3.org/m/typo3/reference-coreapi/12.4/en-us/ApiOverview/Fluid/Syntax.html
    garvinhicking authored Jan 17, 2024
    Configuration menu
    Copy the full SHA
    fbcf1ad View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2024

  1. [BUGFIX] Prevent php warning when passing array as tag attribute (#858)

    TagBuilder::addAttribute() allows both strings and array/traversables
    as attribute value. However, in the implementation only "data" and
    "aria" are properly handled as arrays. For other attribute names,
    this leads to a type conversion warning.
    
    With this patch, that edge case is properly handled with an
    exception. Also, test coverage is added both for data/aria and the
    exception.
    
    Resolves: #857
    s2b authored Mar 11, 2024
    Configuration menu
    Copy the full SHA
    53cea02 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. Configuration menu
    Copy the full SHA
    bfb3544 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. [FEATURE] SplitViewHelper (#856)

    The SplitViewHelper splits a string by the specified separator, which
    results in an array. The number of values in the resulting array can
    be limited with the limit parameter, which results in an array where
    the last item contains the remaining unsplit string.
    
    This ViewHelper mimicks PHP's :php:`explode()` function.
    
    Split with a separator:
    
    ```xml
    <f:split value="1,5,8" separator="," /> <!-- Output: {0: '1', 1: '5', 2: '8'} -->
    ```
    
    Split using tag content as value:
    
    ```xml
    <f:split separator="-">1-5-8</f:split> <!-- Output: {0: '1', 1: '5', 2: '8'} -->
    ```
    
    Split with a limit:
    
    ```xml
    <f:split value="1,5,8" separator="," limit="2" /> <!-- Output: {0: '1', 1: '5,8'} -->
    ```
    s2b authored Mar 15, 2024
    Configuration menu
    Copy the full SHA
    b30e29c View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. [TASK] Raise php-cs-fixer:^3.52.1 (#864)

    Fix array indention findings.
    
    > composer req --dev friendsofphp/php-cs-fixer:^3.52.1
    lolli42 authored Mar 20, 2024
    Configuration menu
    Copy the full SHA
    736101a View commit details
    Browse the repository at this point in the history
  2. [FEATURE] ReplaceViewHelper (#863)

    The ReplaceViewHelper replaces one or multiple strings with other
    strings. This ViewHelper mimicks PHP's :php:`str_replace()` function.
    However, it's also possible to provide replace pairs as associative array
    via the "replace" argument.
    
    Replace a single string:
    
    ```xml
    <f:replace value="Hello World" search="World" replace="Fluid" /> <!-- Output: Hello Fluid -->
    ```
    
    Replace multiple strings:
    
    ```xml
    <f:replace value="Hello World" search="{0: 'World', 1: 'Hello'}" replace="{0: 'Fluid', 1: 'Hi'}" /> <!-- Output: Hi Fluid -->
    ```
    
    Replace multiple strings using associative array:
    
    ```xml
    <f:replace value="Hello World" replace="{'World': 'Fluid', 'Hello': 'Hi'}" /> <!-- Output: Hi Fluid -->
    ```
    s2b authored Mar 20, 2024
    Configuration menu
    Copy the full SHA
    37dbc0d View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. [FEATURE] JoinViewHelper (#861)

    * [FEATURE] JoinViewHelper
    
    The JoinViewHelper combines elements from an array into a single string. You can specify both a general separator and a special one for the last element that is rendered between the elements.
    
    ```html
    <f:join value="{0: '1', 1: '2', 2: '3'}" />
    ```
    
    Results in the output:
    
    ```html
    123
    ```
    
    ```html
    <f:join value="{0: '1', 1: '2', 2: '3'}" separator=", " />
    ```
    
    Results in the output:
    
    ```html
    1, 2, 3
    ```
    
    ```html
    <f:join value="{0: '1', 1: '2', 2: '3'}" separator=", " separatorLast=" and " />
    ```
    
    Results in the output:
    
    ```html
    1, 2 and 3
    ```
    
    * [TASK] Improve handling of iterable objects
    
    * [TASK] Check exception type in test
    
    * [TASK] Improve code for edge case
    
    * [TASK] Add test case for single item
    
    ---------
    
    Co-authored-by: Simon Praetorius <simon@praetorius.me>
    benjaminkott and s2b authored Apr 4, 2024
    Configuration menu
    Copy the full SHA
    2038523 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. [FEATURE] ViewHelpers to return first/last item of an array (#866)

    The FirstViewHelper and LastViewHelper return the first or last
    item of a specified array, respectively.
    
    ## Examples
    
    ```xml
    <f:first value="{0: 'first', 1: 'second', 2: 'third'}" /> <!-- Outputs "first" -->
    <f:last value="{0: 'first', 1: 'second', 2: 'third'}" /> <!-- Outputs "third" -->
    ```
    s2b authored Apr 5, 2024
    Configuration menu
    Copy the full SHA
    392c7d5 View commit details
    Browse the repository at this point in the history
Loading