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

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
Jun 08, 2006 9:59
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
Jun 08, 2006 14:11
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
Jun 13, 2006 10:17
Vote:
 
Ok, just beware that this will not work if you copy pages using code.
#14714
Jun 13, 2006 22:02
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
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.