Skip to content

Instantly share code, notes, and snippets.

@dougludlow
Created August 6, 2013 23:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dougludlow/1a65fe1a926cf6d96b94 to your computer and use it in GitHub Desktop.
Save dougludlow/1a65fe1a926cf6d96b94 to your computer and use it in GitHub Desktop.
Move Umbraco nodes from one parent to another.
var old = new Document(1234);
var newId = 4321;
foreach (var child in old.Children)
{
child.Move(newId);
}
umbraco.library.RefreshContent();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment