Wednesday 18 January 2012

How to reset the "AllItems.aspx" page in your Shared Documents Library


I was face to a blank page while accessing Shared Documents Library.

First, checking with SharePoint Designer 2007, I saw that the AllItems.aspx page's size was more than 13000Kb (instead of 1Kb).

Trying to open the .aspx page gave me really special caracters, as if you try to open a excel file with your notepad.
By the way, the end user explained that he was saving his excel file into the SharePoint Site's Document Library.

Don't know why, via excel, it overwrite each time the wrong file : the AllItems.aspx


The solution that I've applied is describe herunder :

1         Into the URL, add at the end "?contents=1" :
         …./sitename/Shared%20Documents/Forms/AllItems.aspx?contents=1
2         Check the "Shared Documents" entry
3         Click "Reset"
4         Test
If not ok (was my case), the go to next step
5         Open SharePoint Designer 2007, and open your faulty site
6         Browse through the structure and expand the tree view "Shared Documents => Forms"
7         Right-click on the AllItems.aspx file, and select : "Reset to Site Definition"


That's all folks