Check if a page is being copied

Vote:
 
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.
#12668
Mar 25, 2008 18:35
Vote:
 
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.
#14712
Mar 25, 2008 18:45
Vote:
 
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.
#14713
Mar 25, 2008 18:45
Vote:
 
Ok, just beware that this will not work if you copy pages using code.
#14714
Mar 25, 2008 18:45
Vote:
 
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 e.page is null. Has someone done that before?
#14715
Mar 25, 2008 18:45
* 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.