Multi Language content update via the Rest API #2362
-
Is it possible to update the translation of a content item via the Rest API? I tried to post the translation to the second language endpoint (like .../en-us/api/2sxc/app/Content/content/projects) but nothing changed. The translation still sticks to the first language as fallback. I would like to write a little piece of software that will live in the scheduler of dnn and updates the content in 2sxc from a external API. So i need to create items (which works fine so far), updates the item (which is also possible) and then it would do the same procedure for the second language of the website (this is not working right now). Does anybody have the some use case? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @rockgobo As of now the API is still only simple - that means single language only. To do multi-language data it would require quite a bit of skill in the 2sxc / EAV internal C# APIs. If you need this and would be willing to invest some time with me, then I would extend the API but would need you to do testing etc. till it works. I'll probably need 2-4 hours and you as well. Are you in? |
Beta Was this translation helpful? Give feedback.
-
So let's start specifying what we need. I assume you have data like
Now you need to create such data in multi-language. Can this be done in one call or do the calls need to be separated (like first primary language, a while later the secondary language? This will affect if we have a new format with multiple values or if we need to implement partial-updates. |
Beta Was this translation helpful? Give feedback.
Hi @rockgobo
As of now the API is still only simple - that means single language only. To do multi-language data it would require quite a bit of skill in the 2sxc / EAV internal C# APIs.
If you need this and would be willing to invest some time with me, then I would extend the API but would need you to do testing etc. till it works. I'll probably need 2-4 hours and you as well. Are you in?