Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have a website with three languages. Two of the languages use fallback to the properties on the first language, and all languages are mandatory.
I would like it, so that when a new node is created, the editor can just fill out the node name for the first country and click Save and Publish, and then automatically create all three language versions, without having to swtich to each language and enter the node name in each language.
I would like to do this the ContentService.Saving or ContentService.Saved event, but I have been unable to get the two additional language versions of the new node to be created.
I have tried content.SetCultureName(content.Name, "xx-xx"); but it didn't seem to do anything. I have also tried content.CultureInfos.Add(...) but it didn't make a difference.
How do I make sure that when a new node is saved for the first time, that all three language variants are created, and the node name from the first language is used for all variants, if they are not filled out already?
Did you find a solution to this? I am looking to do that same thing too
I honestly do not remember how I solved it, or if it was solved. I don't have access to the source code I was working on at the time, so I can't go take a look.
I hope you find a way around it. If you do, please post your solution here :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted