Hi,
I want to use UserContributions to Insert "News" "Articles" and ...
I dont want user access to CmsDesk and I just added "Cotribution List" web part to news and article page.my site has 2 Languages.the thing that I need is thah when user Insert a News or Article in any language one document Insert automaticly in Other Language with that content and then User just translate content.I have done this in"EditForm.ascx.cs" in "CMSModules\Content\Controls\UserContributions" Path:
in "SaveDocument()" Method:
else
{
Node = formElem.Save();
CMS.TreeEngine.TreeProvider provider = new CMS.TreeEngine.TreeProvider(CMS.CMSHelper.CMSContext.CurrentUser);
TreeNode NodeOtherLanguage = new TreeNode(Node.NodeClassName,provider);
NodeOtherLanguage = formElem.Save();
NodeOtherLanguage.DocumentCulture = "en-US";
if (Node.DocumentCulture == "en-US")
NodeOtherLanguage.DocumentCulture = "fa-IR";
NodeOtherLanguage.Update();
but this code only Change the Culture of document that recently added and dose not add new Document with other Cuture.