version 1.4 rc
I need a way to access text content of the element before it renders… There is no such filter i can see. I want to acces the element to modify the text content based on the language.
Thanks
version 1.4 rc
I need a way to access text content of the element before it renders… There is no such filter i can see. I want to acces the element to modify the text content based on the language.
Thanks
I’m developing a plugin to translate content in backend in a non destructive way, and need to access the $element to modify it’s $element[‘settings’][‘text’] before it renders.
Here a preview of what I’m developing.
The motivation was to avoid creating multiple bricks builds for each language and avoid to overthink custom fields or structures for translations.
This way a I create a build on a bricks template, then I translate if needed.
The plugin just takes the structure of the build and creates translations by element id, not by string translation. So it has a more direct relation to the build.