Review main Abandoned

61505[FEATURE] Add dynamicConfigurations for records

Pascal Querner CR 0 V 0 Easy +23 −0 updated 08/18/19, 11:34

Commit message

This adds a feature to allow dynamic function calls.
With this, you could add this to your record typoscript declaration:

                        fieldToParameterMapDynamic {
                            day {
                                field = crdate
                                func = strftime
                                param = %e
                                as = tx_news_pi1[day]
                            }
                            month {
                                field = crdate
                                func = strftime
                                param = %-m
                                as = tx_news_pi1[month]
                            }
                            year {
                                field = crdate
                                func = strftime
                                param = %Y
                                as = tx_news_pi1[year]
                            }
                        }

so the tstamp of the database row "crdate" would be formatted via function "srtftime" with parameter "%Y".

Review

  • Code review CR 0
  • Verified V 0

Files 1

Review log 34

  1. Pascal Querner uploaded patch set 1 08/16/19, 11:37

  2. TYPO3com voted on patch set 1 V -1 08/16/19, 11:38 Completed build in 11s on Fri, 16 Aug, 11:38 AM Test Summary: No tests found Find logs and detail information at https://bamboo.typo3.com/browse/CORE-GTC-35718

  3. Andreas Kienast commented on patch set 1 CR -2 08/16/19, 12:33

    After talking to Pascal I'll block this patch for now for security and use-case reasons.
  4. Pascal Querner abandoned the change 08/18/19, 11:34