I have a website with multiple contexts for different languages. When I duplicate a context, all resources and their children get duplicated, each of them getting a new resource id. So far so good.
But all the links within the resource content are not updated.
For example a link in the original context [[~10]] points to the resource with the id 10 in the original context. After duplicating the link in the new context still points to the same resource in the other context, because the link still is [[~10]].
Do I have to update the links manually or is there a better way to achieve this?
Use the Babel plugin, and make sure your links use the BabelTranslation snippet. That way it doesn't matter which resource the link is pointed to, it will always show you the equivalent resource in the current context.
I'm not sure however if Babel's tvs that hold the relationships will be updated correctly when duplicating a context. I suppose it could be done with a plugin?
Thanks, I'll give it a try.