Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Missing AllItems.aspx contents

401 views
Skip to first unread message

jremmc

unread,
Aug 2, 2007, 3:54:50 PM8/2/07
to
I did not think this was possible from GUI, but a user managed to delete the
ListViewWebPart in the PlaceHolderMain(Custom) so that the AllItems.aspx
page of a Library has nothing (no web part, ergo no Toolbar, no View:
selection) and no way to undo that I can find. He was simply trying to
delete folders he created. I know enough to open SharePoint Designer, look
at the page and compare it to another Library to see what is missing and
tell you it is the ListViewWebPart in the PlaceHolderMain(Custom) spot, but
I don't know enough to get it back. (Just learning SPD on my own)

If I add the Library web part (Edit Page, Add Web Part) from the GUI like I
might add to the home page to display the Library, I don't get the View:
drop down menu. (btw, there are no Closed web parts). If I copy the
ListViewWebPart from my new view (see next) from in SharePoint Designer, I
just get my new view not the original All Items that I want back.

I created another AllItems which got named AllItems1.aspx, so the site users
can get to the documents. Two issues with that view. It does not show the
folders that still exist (just docs), and "View:" drop down does not show
All Items (the original) as a selection though it does show Explorer View as
a selection. (Explorer View does show the folders that still exist.)

How to revert All Items aspx page to original state?

Thanks,
jremmc


madhur

unread,
Aug 2, 2007, 4:43:13 PM8/2/07
to

Interesting problem, although dont know the solution but can give some
hints.
See the description of ListViewpart here
http://www.sharepointplatform.com/teamblog/Lists/Posts/Post.aspx?List=427bfca2%2Db731%2D4c19%2D87c6%2D83c90460e02c&ID=42

May be you can copy the CAML of another allitems.aspx and then replace
the ListID and list name.

Madhur
http://madhurahuja.blogspot.com


Alex Xie [MSFT]

unread,
Aug 3, 2007, 12:23:44 AM8/3/07
to
Hi Jremmc,

Thank you for your post!

You can use the following approach to solve this problem.

1. In SharePoint Designer, backup and delete the AllItems.aspx under the
document library folder.
2. Browse this document library through GUI.
3. Click Settings and point to Create View.
4. Type a descriptive name for this View, for example: Default View. And
make it as the default view of this library.
4. Select the columns to be displayed in this View and then click OK.
5. The View selection drop down list will then be displayed on the right
corner of this ListViewWebPart.

After that, you can enter the document library settings, click on this
created View. In the web address of this view field, input AllItems. Then
the AllItems.aspx page is restored to original.

Hope it helps!

Sincerely,
Alex Xie
Microsoft Online Support Professional
Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
================================================
When responding to posts, please "Reply to Group"
via your newsreader so that others may learn and benefit from your issue.
================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Alex Xie [MSFT]

unread,
Aug 3, 2007, 12:25:48 AM8/3/07
to
Hi Madhur,

Thank you for your inputs and sharing!

Your assistances are appreciated!

Madhur

unread,
Aug 3, 2007, 8:41:43 AM8/3/07
to

Hi Alex

I have one concern. If we have deleted AllItems.aspx, how would we browse to
the document library through GUI. Because when we browse to the document
library, AllItems.aspx is the file, which is accessed and rendered.


--
Madhur

http://madhurahuja.blogspot.com


Alex Xie [MSFT]

unread,
Aug 6, 2007, 2:06:07 AM8/6/07
to
Hi Madhur,

Appreciate your feedback!

Yes, you are correct. We need to access the URL:
http://xxx/xxx/webfldr.aspx to browse to the Explorer View page of this
document library. After that, we should be able to create a new View.

jremmc

unread,
Aug 6, 2007, 10:22:23 AM8/6/07
to
Hi Alex,

Thanks, I will keep these instructions.

I tried to follow Madhur's instructions as best I could with limited
knowledge and while I was able to copy/paste another List's ViewListPart for
AllItems, I was not able to locate the information I needed to set the view
ID to the missing view (each hex ID I tried did not give me the View:
drop-down box though everything else was poperly restored). But with all the
right-clicking I did, "Restore to Site Definition (or was it Master Page
Definition, now I can't recall) popped up and I selected that (which I am
familiar with) and that did the trick too.

Thanks again to you and Madhur.

jremmc


"Alex Xie [MSFT]" <v-a...@online.microsoft.com> wrote in message
news:q14fWYY1...@TK2MSFTNGHUB02.phx.gbl...

Alex Xie [MSFT]

unread,
Aug 7, 2007, 1:47:45 AM8/7/07
to
Hi Jremmc,

Thank you for your response.

I understand that you successfully resolved this issue after moving the
listview webpart from other place and clicking "Restore to Site
Definition".

This information has been added to Microsoft's database. Your solution will
benefit many other users, and we really value having you as a Microsoft
customer.

If you have any other questions or concerns, please do not hesitate to
contact us. It is always our pleasure to be of assistance.

susiewolf

unread,
Dec 3, 2008, 2:08:48 PM12/3/08
to
I too have corrupted my allitems.aspx. Can you tell me how to get to Restore to Site Definition?

I've clicked and right-clicked everywhere possible and can't find it.

callahan

unread,
Dec 5, 2008, 6:47:50 PM12/5/08
to
Do you mean "Reset to site definition?"

That setting is on the site's Site Settings page. This lets you reset a
single page (or all pages) within your site to use the version of the
page(s) included in the site definition.

-callahan
<Susie Wolf> wrote in message news:20081231...@cmxengineering.com...

0 new messages