Auto-convert filter input to string if necessary

Created on 22 January 2016, about 9 years ago
Updated 24 June 2024, 7 months ago

Coming from #2654892: Allow using data filters in placeholder tokens β†’ :

The 'default' filter can currently only filter on strings, so node:title is not a valid input while node:title:value would be. As we can convert everything to strings via $typed_data->getString() we should probably implement some logic that invokes that function for filters that need string input.

Thus, we need to check whether the next filter input accepts the data of the current type, if not try it again with a string. If that works, auto-convert it via getString().

πŸ“Œ Task
Status

Active

Version

2.1

Component

Data filters

Created by

πŸ‡¦πŸ‡ΉAustria fago Vienna

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024