I'm working on an umbraco project which has a lot of duplicate documents. I need multiple documents in my navigation structure which have the same content but a different title and a different position in the navigation tree. I created a documenttype with the generic property "copypage" (Type ContentPicker) where the editor can set which page's content should be mirrored. My current solution for this looks like
var page = Library.NodeById(Model.copypage);
@page.contents;
but this leads to problems with macros contained in the mirrored page.
Edit: My problem is that the macros on the original document access the documents children. Those children are not copied as children to the mirrored page. So my target is to execute @Html.Raw(umbraco.library.RenderMacroContent(page.contents.ToString(), Model.Id))
in the context of the original page.