November Happy Hour will be moved to Thursday December 5th.

Original parent page of deleted page

Vote:
 
Hi! Does any one know how to get the parent page of a page before it was deleted? I need to retrieve properties form a startpage from the deleted page. The startpage can differ, this because we are in a Enterprice solution where there exist several startpages. How can I retrieve the current instance's startpage? A feature req. would be to be to have a recycle bin for each instance. The ID of the recycle bin could be set in webConfig for each instance. Another req. is that EPiServer could handle restoring deleted pages from the recycle bin.
#12703
Jul 06, 2006 13:21
Vote:
 
The only way (I know of) to get the original location of a page before it was deleted is to store it in the page when it is being deleted. E.g. Add a new property to all your pagetypes called RestorePage, then hook into the MovingPage event in the DataFactory and capture pages moving to the recycle bin. When a page is being moved to the recycle bin store it's current parent in the new property. You could then create a custom plug-in to the editor for a restore function.
#14766
Jul 06, 2006 23:36
* 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.