You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 15/umbraco-cms/reference/umbraco-flavored-markdown.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,19 @@ With this example, the syntax `{umbValue: bodyText}` would be processed and rend
39
39
The internal working of the `ufm-label-value` component would then be able to access the property's value using the [Context API](../extending/backoffice-setup/working-with-data/context-api).
40
40
41
41
42
+
### Filters
43
+
44
+
In addition, a filter syntax can be applied to UFM contents. This can be useful for formatting or transforming a value without needing to develop your own custom UFM component.
45
+
46
+
The syntax for UFM filters by using a pipe character `|` (U+007C Vertical Line). Multiple filters may be applied. The value from the previous filter is passed onto the next.
47
+
48
+
For example, to display a rich text value, stripping out the HTML markup and limiting it to the first 15 words could use the following filters:
49
+
50
+
```markdown
51
+
{umbValue: bodyText | strip-html | word-limit:15}
52
+
```
53
+
54
+
A list of available UFM filters is detailed below.
42
55
43
56
44
57
## UFM components
@@ -81,6 +94,21 @@ The alias prefix is `umbContentName` An example of the syntax is `{umbContentNa
81
94
As of Umbraco 15.0.0, the Content Name component supports the content-based pickers, e.g. Document Picker, Content Picker (formerly known as Multinode Treepicker) and Member Picker. Support for the advanced Media Picker will be available in upcoming Umbraco release.
82
95
83
96
97
+
### Available UFM filters
98
+
99
+
As of Umbraco 15.0.0, the following UFM filters are available to use.
0 commit comments