Question

I've got a problem "browsing" folders in my Sharepoint 2010 document library. In my opinion there are two ways of accessing folders, but I can't see the difference. 1) http://hostname/doclib/fodler/subfolder/secondsubfolder and 2) http://hostname/doclib/Forms/AllItems.aspx?RootFolder=%2Ffolder%2Fsubfolder%2Fsecondsubfolder&FolderCTID=0x012000C77CAA95BDB1F64190861DEBBE604440&View={03FE35CE-2568-4C17-89E1-95793E6BE73B}

Both work great as long as I'm making no changes to AllItems.aspx, but I got a problem when customizing my AllItems.aspx. My DocLib is loosing it's view in the settings and I'm getting " The webpage cannot be found " in option 1). Probably the problem is the custom page itself or the view, but I can't see the exact problem.

What I want to do is: Display a custom webpart-page instead of the commom AllItems.aspx, but access it exactly the way sharepoint does with AllItems.aspx. Option 2) might work but needs to access the exact folder and view by guid right? So it's not quite easy to achive this dynamically.

What I tried: I Replaced the complete sourcecode of AllItems.aspx with the sourcecode of my custom webpart page.

Has anybody an idea, how I could solve this?

Thanks in advance Stefan

Was it helpful?

Solution

The AllItems.aspx is just a web part page and can be edited as such. Just add/remove the web parts from there and keep the page in place.

I've often customised the column layouts by adding a JS webpart above the WP that outputs the list items in the AllItems (and other views).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top