-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Which Umbraco version are you using?
17.0.0-rc1
Bug summary
Filters such as truncate and fallback do not work with UFM Expressions, only UFM Components. After a bit of debugging this is because the parameters are coming through as null in Expressions.
Specifics
Parameters are undefined for custom filters too.
Steps to reproduce
Create block labels like the following:
Rich Text: ${ content | stripHtml | truncate:30 | fallback:[Empty] }
Rich Text: {umbValue: content | stripHtml | truncate:30 | fallback:[Empty] }
Expected result / actual result
Rich Text: ${ content | stripHtml | truncate:30 | fallback:[Empty] }
If content has a value, it appends a ... e.g. Rich Text: Here's some bold, italic rich text!…
It should only do this if it's truncating the string.
If empty, the fallback does not kick in:
Rich Text:
Rich Text: {umbValue: content | stripHtml | truncate:30 | fallback:[Empty] } works as expected.
This item has been added to our backlog AB#61957