Try our conversational search powered by Generative AI!

Problem - Copy/Paste page with children

Vote:
 

I have a problem when I try to copy/paste a page with all of it children pages. I need to do some special operations on create and I need to know the source page ID for all pages.

I have:
DataFactory.Instance.CreatingPage += new PageEventHandler(some_name);

private static void some_name(object sender, EPiServer.PageEventArgs e)
{
    //do the job
}

From the root page "e" is of type CopyPageEventArgs and I can get SourcePageLink, but for all children pages "e" is of type SavePageEventArgs and there is no SourcePageLink property. How I can get source page IDs for all copied pages in the copy/paste operation.

#36134
Jan 15, 2010 13:43
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.