Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Check if a page is being copied

Is there a way to check if a page is being copied? an event ,Querystring or property? We need to get the new page and do some changes to it before saving it, we need to do this for pages of a specific pagetype.
Jun 08, 2006 9:59
The Creating/Created event will be fired for the page beeing copied, but no events will fire for any children. e.Page will be null if copying, so you can test for that to determine if it is a "real" create or a copy.
Jun 08, 2006 14:11
Thank's, I found another way to check. When creating a new page the querystring will have the 'parent' key but this is missing when copying.
Jun 13, 2006 10:17
Ok, just beware that this will not work if you copy pages using code.
Jun 13, 2006 22:02
I check the type of e and look if it is a CopyPageEventArgs, that's working too. But I have another problem, I need to change a property on the page that is copied but I can't find a way because is null. Has someone done that before?
Feb 28, 2007 11:18
* 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.