I have created a .net user control that will copy that document programatically to another website for multilingual site i have two seperate nodes of the same website project
now is the user creates a document it must be programtically allowed to be copied by a button click and here is my code i cant get it to work
Dcocument.Copy() not working
I have created a .net user control that will copy that document programatically to another website for multilingual site i have two seperate nodes of the same website project
now is the user creates a document it must be programtically allowed to be copied by a button click and here is my code i cant get it to work
Document childDoc = new Document(Convert.ToInt32(Request.QueryString["id"]));
childDoc.Copy(childDoc.Parent.Id, author,
true);
foreach (Relation r in Relation.GetRelationsAsList(childDoc.Id))
{
Document newDoc = new Document(r.Child.Id);
intidd = newDoc.Id;
newDoc.Text = childDoc.Text;
newDoc.Publish(author);
umbraco.
library.UpdateDocumentCache(newDoc.Id);
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.