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
This operation is approximately as efficient as rendering a simple `Text` field, since the transformation is only applied once, when the value is first saved.
258
+
259
+
260
+
##### Alternative transformations
261
+
262
+
Sometimes, you may want to invoke alternative transformations.
263
+
Under the hood, the default implementation uses the `portal_transforms` tool to calculate a transform chain from the raw value's input MIME type to the desired output MIME type.
264
+
If you need to write your own transforms, take a look at [this tutorial](https://5.docs.plone.org/develop/plone/misc/portal_transforms.html).
265
+
This is abstracted behind an `ITransformer` adapter to allow alternative implementations.
266
+
267
+
To invoke a transformation in code, you can use the following syntax.
268
+
269
+
```python
270
+
from plone.app.textfield.interfaces import ITransformer
0 commit comments