Created
June 23, 2012 13:45
-
-
Save joeriks/2978346 to your computer and use it in GitHub Desktop.
Ghost copy a Umbraco node (in document publish event)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var d = new Document(copyOfNodeId); | |
var ghost = d.ToXml(umbraco.content.Instance.XmlContent, true); | |
var p = umbraco.content.Instance.XmlContent.GetElementById(copyToParentNodeId); | |
p.AppendChild(ghost); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment