Search

January 2005
M T W T F S S
« Dec   Feb »
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Folders are in the document library always on the last place

January 13th, 2005 by


From: <Pavel@discussions.microsoft.com>


Subject: Folders are in the document library always on the last place


Date: Thu, 13 Jan 2005 06:19:03 -0800


Newsgroups: microsoft.public.sharepoint.portalserver


 


I created a document library, uploaded some files and created some folders. The problem is that the folders are in the document library always on the last place after all files. I tried to change the order by type but it doesn’t help – it changed only the order of the files but the folders are still on the last place. Do you have any idea how to solve this problem?


 


Thank you very much,


Pavel Slama


 


*****************************************


 


From: <tedteng@discussions.microsoft.com>


Subject: Folders are in the document library always on the last place


Date: Thu, 13 Jan 2005 06:37:04 -0800


Newsgroups: microsoft.public.sharepoint.portalserver


 


No native function can help u.


 


Maybe u can try this nice gift – a DL browser web part from Stramit.


 


http://blog.spsclerics.com/archive/2004/12/12/484.aspx


 


br


 


ted


 


****************************************


 


From: <Pavel@discussions.microsoft.com>


Subject: Folders are in the document library always on the last place


Date: Thu, 13 Jan 2005 07:07:02 -0800


Newsgroups: microsoft.public.sharepoint.portalserver


 


That’s really a nice webpart but the files are still on the first place or am I able to change it?


 


****************************************


 


From: <tedteng@discussions.microsoft.com>


Subject: Folders are in the document library always on the last place


Date: Thu, 13 Jan 2005 07:19:02 -0800


Newsgroups: microsoft.public.sharepoint.portalserver


 


 


oic. The author seems not release the codes. Maybe u can contact the author to get source codes.


 


br


 


ted


 


***************************************


 


From: “David Beraha”


Subject: Folders are in the document library always on the last place


Date: Thu, 13 Jan 2005 19:58:39 +0100


Newsgroups: microsoft.public.sharepoint.portalserver


 


There’s been a response to that some time ago (can’t find the reference, so see here my copy of the message). Haven’t tried myself.


Regards,


David


 


******************************************************


Hi Philip,


 


For this issue, the most common resolution is to sort the “Type” column of document library so that the folder will be displayed at the toppest of the list. However, this may not be acceptable for some scenarioes.


So I’d suggest you can use the javascript below to perform this operation automatically. Please open the document library allitems.aspx page in Frontpage 2003 and then add this script befor the </head> tag; save the page. After that, when you view this page, the folder will be displayed at the toppest of the list.


 


<!– code to paste –>


<!– add this script before the </head> tag of the allitems.aspx page


–>


<script language=”javascript”>


   var strDocUrl = window.location.href;


   var idxQuery = strDocUrl.indexOf(“?”);


   if (idxQuery == -1) {


  window.location.href= strDocUrl + “?SortField=DocIcon&SortDir=Desc”;


   }


</script>


<!– end –>


 


Best Regards,


Wei-Dong Xu


Microsoft Product Support Services


Get Secure! – www.microsoft.com/security This posting is provided “AS IS” with no warranties, and confers no rights.


 


 

Posted in SPPS03_Tips | No Comments »



Comments are closed.