Yes, the out of the box custom grid config doesn't really support values in arrays, so it might be that you need to write a custom mapper, to get those values out.
so it might be that you can use this and expand it to support the array values, it's just not something that is in the core of translation manager at the moment.
thanks for the hint. My problem at the moment is, that it seems like the valueMapper is not getting registered. Where can i do that, and how do i trigger the mapper? Is it every time i send a node to translation?
How to add custom grid setup containing arrays
Hi Kevin,
first of all, super product you have #h5yr.
In my solution i have som custom grid elements, which the default setup doesn´t translate.
I´m trying to add them to the
Translations.config
file under mappers/grud/custom/I can´t find any documentation on setting up a custom grid-element containing arrays.
Can you help me in the right direction here? Ex. if i want to translate the properties in
images.items[].title
Best regards René
Hi René
Yes, the out of the box custom grid config doesn't really support values in arrays, so it might be that you need to write a custom mapper, to get those values out.
the code for the Custom Grid Mapper is available here https://gist.github.com/KevinJump/a7754bb20f93b1e9934a8cbfb1bb9203
so it might be that you can use this and expand it to support the array values, it's just not something that is in the core of translation manager at the moment.
Kevin
Hi Kevin,
thanks for the hint. My problem at the moment is, that it seems like the valueMapper is not getting registered. Where can i do that, and how do i trigger the mapper? Is it every time i send a node to translation?
Best regards René
is working on a reply...