Todd Bleeker's 12 Hive

All MindsharpBlogs

Are you pondering what I'm pondering?

My Links

Post Categories

Archives

Blog Stats

Mindsharp's FREE Deleted Items Document Library Custom List Template

Introduction

The purpose of this template is to enable information office workers to self-restore documents that are incidentally deleted from a protected document library using the document library interface in the browser where the deletion occurred. Users can delete items and subsequently restore them without requiring a recent database backup or the restoration of the entire content database. This functionality is packaged in an all encompassing STP file that can be imported into a list template gallery so Web Designers+ within a site collection can immediately begin creating protected document libraries.

 

The goal was to achieve this without any changes to the Web Servers (like altering Site Definitions or deploying Event Handlers), without any changes to the SharePoint databases (like triggers), without any dependencies on the resulting document libraries (like a mirror document libraries), and without post-provisioning configuration of the resulting document libraries (like pointing to an Event Handler).

Features

Easy to deploy (no server touch). All functionality bundled up in a custom list template that appears on the Create page:

 

Optionally allows multiple New Document Template smart menu (enabled by default).

 

Replace built-in Delete functionality with Delete (restorable) functionality integrated into the smart menu.

 

Like any Office application, access to Delete (permanent) functionality via the <Shift> key.

 

Delete (restorable) functionality on View Properties page of all documents.

 

Delete (restorable) functionality on Edit Properties page of all documents.

 

Like Outlook, there is a Deleted Items view. Note that Edit in Datasheet is provided for mass non-restorable deletes. The list is for all documents anywhere in this document library so the document’s icon sports a tool tip that indicates what folder the document was deleted from.

 

The Deleted Items Document Library supports the restoration of deleted folders on the Deleted Folders view.

 

Full support for content approval. Yes, document deletions can now be moderated.

 

Full support for version history (a version is even created for each delete/restore). No loss of who created/altered a document at any time.

 

Edit in Datasheet is still allowed for mass non-restorable deletes from all views including the Deleted Items view. However, the user is warned the first time they use Edit in Datasheet each session so that they know the results of their actions.

 

Explorer View is still allowed for Windows Explorer functionality including non-restorable deletes but the user is warned the first time they use Explorer View each session.

 

Some non-visual features:

  • A Document Library Event Sink can be written to handle deleted documents because the documents are only renamed (rather than removed). So, if you want to do some kind of server processing on deleted documents, they are still there and easy to identify when the event handler fires.
  • Alerts will still be fired notifying users that someone has altered the document. Unlike alerts that are fired when someone deletes a document using the built-in document library, the alerts fired using this document library will have complete information about the deletion including a link to the deleted document.
  • Delete (restorable) functionality is automatically added to new listviews.
  • Easy to add to or remove from existing document libraries (see the document called Manually Add or Remove Self-Restore Functionality).
  • All source code is included in the STP and could be altered by your programmers.
  • Easy to upgrade when new functionality is made available.
  • Several options can be toggled on or off (see the Constants.js file in the Forms folder):
  • §  Enable Multiple Templates

    §  Show Folder Tool tip

    §  Warn About Datasheet

    §  Warn About Explorer View

    §  Silence Errors

  • Full error handling throughout the solution.
  • Constants used for most strings so this could readily be globalized for another locale.

While other features could probably be cataloged, this list is relatively complete.

 

This labor of love has cost countless hours of sleep and a few grey hairs but the solution will likely save many people countless hours of sleep and their own grey hairs.

Download FREE

Download the bits (documentation and source) in the Software section of Mindsharp's Premium Content area.

 

<Todd />

posted on Thursday, October 06, 2005 7:47 PM

Feedback

# Deleted Items Document Library Custom List Template 10/6/2005 10:47 PM Paul Schaeflein's SharePoint Experience

# Todd Bleeker's (MindSharp) Document Library Custom List Template Recycling bin MORE!! 10/7/2005 12:44 AM Jason Medero's Blog

# Todd Bleeker's (MindSharp) Document Library Custom List Template Recycling bin MORE!! 10/7/2005 12:47 AM Jason Medero's Blog

# Todd's Deleted Items Doc Lib 10/7/2005 4:46 AM BinaryJam

# Recycling in SharePoint is Hot! 10/7/2005 5:08 AM Patrick Tisseghem's Blog [MVP SharePoint]

# Recycle bin, really? 10/7/2005 8:47 AM The Dean's Office

# Recycle bin, really? 10/7/2005 9:03 AM The Dean's Office

# One More Recycle Bin Alternative by Todd 10/7/2005 10:35 AM The Boiler Room - Mark Kruger, SharePoint MVP

# One More Recycle Bin Alternative by Todd 10/7/2005 10:37 AM The Boiler Room - Mark Kruger, SharePoint MVP

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/7/2005 12:56 PM Andy Lubel

is there a simple way to integrate this in my custom site definition?

# Sharepointers are big on recycling 10/7/2005 2:00 PM Angus Logan

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/7/2005 2:03 PM Todd Bleeker

Andy,

I include a document the explains how to "Manually Add or Remove Self-Restore Functionality" to existing document libraries, including those on custom site definitions.

<Todd />

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/7/2005 3:18 PM Dustin Miller

Contrary to what my blog post might imply, I do think this is great work. Keep it up, Todd!

# Recycle Bins for SharePoint 10/7/2005 4:36 PM Heather Solomon's Blog - Design, MCMS, SharePoint,

# Recycle Bins for SharePoint 10/7/2005 4:39 PM Heather Solomon's Blog - Design, MCMS, SharePoint,

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/7/2005 5:12 PM Todd Bleeker

Thanks Dustin!

<Todd />

# Recycling, the Bleeker Way 10/8/2005 12:37 AM Ryan Rogers's SharePoint Blog

Since I don't lately have time to create original content of my own, I'd like to take a second to highly...

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/8/2005 6:27 AM Martin Edelius

Great stuff! I've been looking for something like this for quite some time.

Major kudos to you for providing it for free.

# SharePoint: Recycle Bin 1.0 10/8/2005 7:15 PM Romeo Pruno

Quanti hanno avuto questo problema? tanti, immagino, come si può leggere dai tantissimi post e soluzioni...

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/9/2005 2:49 PM Todd Bleeker

Glad to be of help, Martin.

<Todd />

# Mindsharp's FREE Deleted Items Document Library Custom List Template 10/9/2005 6:26 PM Chris Johnson

Posted recently:
http://mindsharpblogs.com/todd/archive/2005/10/06/719.aspx
This looks like a cool...

# Recycling bins, option 2 10/10/2005 7:53 AM Breaking Point Blog

# Recycling bins, option 2 10/10/2005 7:54 AM Breaking Point Blog

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/11/2005 11:14 AM rachel

Hi,

Really cool stuff! Especially provided for free!

Just a little problem when the Doc Lib dropped as WP on the homepage, the menu "Delete(restorable)" disappeared from the dropdown. Also, if there is already deleted item, it will display as "!![deleteditem]". It is easy to apply the filter not to display deleted item, but how to display the menu "Delete(restorable)"?

Thank you,

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/11/2005 9:00 PM Todd Bleeker

Rachel,

Adding Delete (restorable) to the dropdown could be achieved by adding the logic to the same page. However, the best approach is to use the Name field without the dropdown list. That way the user must access delete functionality from within the confines of the list.

<Todd />

# If two recycle bins theoretically collided... 10/11/2005 10:08 PM Heather Solomon's Blog - Design, MCMS, SharePoint,

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/12/2005 12:21 PM rachel

Thanks Todd!

Another question is is there any time restriction on files stored in "Deleted Items" view? For example, we can set up after how long files will be permanently deleted?


rachel

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/12/2005 2:33 PM Todd Bleeker

Rachel,

To keep all the functionality for this solution bundled into an STP, I felt that it was best to stick with one server call for one document event. There is no time-based event fired from the client. A scheduled server job would be a more appropriate vehicle to handle removal of aged documents.

That said, because the documents are only renamed (rather than removed), this solution empowers Document Library Event Handlers to manipulate all documents in the library. So, if you want to do some kind of server processing on a given event to manipulate documents or on the library as a whole, all documents (deleted or otherwise) are still there and easy to identify when the event handler fires.

HTH,

<Todd />

# On Recycle Bins and 10/12/2005 8:00 PM The Dean's Office

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/13/2005 9:37 AM rachel

Todd,

Thanks for your detailed explaination and the recycle bin works amazingly!

[rachel]

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/13/2005 7:42 PM Todd Bleeker

Rachel,

Wait until you see the awesome Quick Launch work I hope to blog about soon. You're going to love it!

<Todd />

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/14/2005 9:34 AM rachel

Todd, most anticipated!

[rachel]

# Sharepoint: Risorse utili 10/14/2005 5:14 PM Romeo Pruno

SharePoint Web Parts (free)

ActiveX Scripting Web Part (Simon Mourier)
Alert Manager, Subweb Viewer...

# Recycle Bin.. Continued..End Game 10/16/2005 4:04 PM Sharepoint Unplugged

After all this, one thing still remains - the javascript function mentioned in the install instructions....

# Ancora Cestini per SharePoint 10/18/2005 12:56 PM Igor Macori

Segnalo che è disponibile un comodo modello di Document Library realizato da Mindsharp in grado di gestire...

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/20/2005 11:41 AM Eb

I get the following error:

The URL 'Shared Documents/Journyx Time Entry Guidelines.doc' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.

I believe the problem is due to fact that my document library is not named "Shared Documents".

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/23/2005 11:44 PM rodney

Hi,

has anyone been able to move a document from one document library to another?

Cheers,

Rod

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/23/2005 11:54 PM james

What do you mean?

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/24/2005 12:01 AM rodney

I mean, when i change a field in the document library e.g. a field called Status which has 2 varaibles; Draft and Final. When change the status of the document from draft to final i want the document to be moved to the final document library.

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/24/2005 2:48 PM Todd Bleeker

Rod,

Moving a document from one document library to another must be done on the server using a Document Library Event Sink. Althought I took a radically different approach to a "recycle bin"; there is a good example of handling events in this article on MSDN:
http://msdn.microsoft.com/msdnmag/issues/05/02/RecycleBinforWSS/

<Todd />

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/26/2005 2:19 PM Jeff

Hi,

Great tool. Any chance you have a mocked-up custlist schema.xml to be included on a custom site definition?

Thanks.

Jeff

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/26/2005 4:10 PM Todd Bleeker

Jeff,

Not yet, but it is on my list.

<Todd />

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/27/2005 5:31 AM Bernabe

Great work Todd!

I liked very much this self-contained solution to the recycle bin issue

+1 for a list schema version ;) it is on my wish list, this way i would add it to other LCIDs.

Thanks

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/27/2005 6:06 AM Todd Bleeker

Bernabe,

You can add self-restore functionality to other LCIDs. The instructions are in the download.

<Todd />

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 11/1/2005 6:53 AM Andy

Oh really? Where is it described, please?

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 11/1/2005 2:32 PM Todd Bleeker

Andy,

Look in the document in the download called:
Manually Add or Remove Self-Restore Functionality.doc

The globals.js file will also need to be modified to alter the text presented in the menus and toolbars.

<Todd />

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 11/7/2005 10:24 AM Michael Leeming

Well I have now managed to integrate this fine list template into my custom site definition.

But the only thing I can't figure out is how to tranfer all my document templates (WORD, EXCEL AND POWERPOINT etc.) into the /Document Library/Forms folder when creating a new subarea. I do not wish to add these manually to all the subareas I create.

Any ideas?

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 11/8/2005 5:29 AM Todd Bleeker

Michael,

I believe that I can help you, please email me directly at todd at Mindsharp.com

<Todd />

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 11/8/2005 6:11 AM Shane Perran

Rodney,

There are tools that allow for that functionality.

www.infotechcanada.com/teamtools - Look at Trace.

It's geared towards ISO 9000 companies that need audit trails however so it is commercial.

If you dont care about ver history / metadata you can just do it via the explorer view.

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 11/10/2005 4:16 AM Pankaj Anand

Todd,

Great Tool. I feel the main issue with this approach is that the deletion event is caught by the web client only. Hence deletions through WebDAV (Windows Explorer, Word, Excel or even ‘Explorer View’) won’t get caught and therefore will be deleted without trace!

The MS ISAPI approach does catch the WebDAV deletions, so I feel for this reason it’s a better approach overall (even though the interface is very basic!)

Do you have any plans to catch WebDav deletions?

PA

# With License to Rename 12/1/2005 2:48 AM Peter's Pattern

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 2/22/2006 10:32 AM chidi okeh

I ran into this info, I have been looking for all along but I am having some issues.

On the 6th page of the "Manually Add or Remove Self-Restore Functionality" manual, where you are instructed to copy the following js javascript:MSOTlPn_ShowToolPane('2'); and paste on the address bar, I am getting an error that says Object Expected Code=0...BaseType = 0.

Any ideas

# Mindsharp's FREE Deleted Items Document Library Custom List Template 3/1/2006 2:10 PM SharePoint, SharePoint and stuff

Schon etwas &auml;lter aber gerade mal wieder entdeckt: Mindsharp's FREE Deleted Items Document Library...

# Mindsharp's FREE Deleted Items Document Library Custom List Template 3/3/2006 5:21 PM SharePoint, SharePoint and stuff

Schon etwas älter aber gerade mal wieder entdeckt: Mindsharp's FREE Deleted Items Document Library Custom...

# Todd talks about his CEWP solutions: deployment 3/10/2006 10:42 PM Andrew Connell [MVP MCMS]

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 3/29/2006 6:42 AM Jay Matthews

Sharepoint Designer

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 5/2/2006 12:15 PM doug

I am using this template with Windows Sharepoint Services. It's great, but the search results show the renamed deleted items. Is there a way to not show them?

thanks!

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 5/2/2006 1:55 PM Todd Bleeker

In SPS, it should be relatively easy to default to filter out files/folders that start with "!![Deleted".

In WSS, a Web search will always return the deleted documents, however, a List search should be filtered by the ListView in which the search is conducted. So, deleted listitems should not show in the AllItems ListView.

HTH,

<Todd />

# Questions from Impact Session 5/22/2006 5/24/2006 5:03 PM Insolitus Confusio

# SharePoint Web Parts: Free 3rd Party SharePoint Web Parts &amp; Tools 6/1/2006 3:44 PM The Boiler Room - Mark Kruger, SharePoint MVP

For those who aggregate my feed and do not often visit the blog iteself... I've updated my SharePoint...

# Eli's SharePoint Resources 6/6/2006 1:50 PM Eli Robillard's World of Blog.

What's Here
Welcome to my new and improved list of SharePoint Resources! This is a hub for SharePoint...

# My Top 10 and a few &quot;MUST HAVE&quot; Management Tools for SharePoint 2003 7/21/2006 9:27 PM Joel Oleson's SharePoint Land

I've been working on a SharePoint Manageability briefing and put together some free tools that I believe...

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 11/13/2006 12:01 PM Dwayne

How do I convert the source to an STP file? I need the list to be customized slightly to included different template file. How can I take the sources provided and compile it into a STP file?

# SharePoint 2003 Recycle Bin Links 2/5/2007 5:58 PM Capital Design

I was ego surfing today and came upon the following links that related to the "Add A Recycle Bin To Windows SharePoint Services For Easy Document Recovery" artcile that I contributed to last year. http://blogs.msdn.com/harsh/archive/2005/10/17/481621.aspxGreat implementation and rework of the...

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 3/11/2007 10:21 AM gelens

I do want to delete items permanetly but they
don't even show up in the recycle bin
What to do about it?

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 3/19/2007 8:32 PM Todd Bleeker

gelens,

I need more information to help. Can you see the deleted items in the Explorer view?

<Todd />

# Free SharePoint Web Parts (3rd Party) 6/26/2007 10:12 AM The Boiler Room - Mark Kruger, Microsoft SharePoin

Free SharePoint Web Parts (3rd Party) Konrad Brunner - UGS&#39;s Web Parts (broken link 8/25) Document

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 10/5/2007 1:13 PM MO_inSeattle

Is there any info available on how the Deleted Items library web part functions through an upgrade to SharePoint 2007?

# WSS 2.0 and SPS 2003 IT Pro Tools 10/16/2007 11:23 PM Joel Oleson's SharePoint Land

SPS 2003 Free IT Pro Tools MS IT RecycleBin 1.2 WSS Split Tool (SharePoint Content Db Split) SharePoint

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 2/17/2008 6:14 AM טיסות לתאילנד

Andy,

I include a document the explains how to "Manually Add or Remove Self-Restore Functionality" to existing document libraries, including those on custom site definitions.

# re: Mindsharp's FREE Deleted Items Document Library Custom List Template 3/4/2008 6:02 AM Canton Georgia Real Estate

I must say that this reallt works. We had to do a self-restore on some real estate documents that were incidentally deleted, and they came right back up even from a protected document library.

# &quot;Neues Dokument&quot; f?r verschiedene Templates? | hilpers 1/20/2009 9:39 AM Pingback/TrackBack

&quot;Neues Dokument&quot; f?r verschiedene Templates? | hilpers

# Papelera de reciclaje para WSS | hilpers 1/20/2009 1:36 PM Pingback/TrackBack

Papelera de reciclaje para WSS | hilpers

# Applying the DeletedItems Template to existing Document Libraries | keyongtech 1/21/2009 9:46 PM Pingback/TrackBack

Applying the DeletedItems Template to existing Document Libraries | keyongtech

# antipsychotic medications heat precautions 1/13/2010 1:54 PM HSepherekeevawn

antipsychotic medications for alzheimer patients fixtinhot

http://www.angelfoodstny.org/ - buy lexapro online
Some of the most common side effects associated with Lexapro are: headache, dry mouth, nausea, fatigue, weight gain, sleepiness, diarrhea, or loss of libido.
<a href=http://www.angelfoodstny.org/>generic lexapro escitalopram</a>
No prescription! Fast delivery!
If you have never heard of the popular SSRI anti-depressant known as Lexapro, then perhaps its time you do.
<a href=http://www.angelfoodstny.org/>generic lexapro escitalopram</a>
This medication has played a significant role in improving individuals qualities of life worldwide who suffer from depression.

# SPS2003: DocLib Recycle Bin | La-Roy 1/29/2010 8:18 AM Pingback/TrackBack

SPS2003: DocLib Recycle Bin | La-Roy


Comments on this post are closed.
Title  
Name  
Url
CAPTCHA
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments