Setting Default View in a Picture Library
Hi Guys,I would like to set the default view for a picture library to "Details". Currently the default view is "Thumbnails".
After some study, it appears to remember the view from the last visit to the page. For instance, if I choose "Details", navigate away from the page and then return, it remains the details view. I would still like to control what view the user sees upon entering the library.
"Picture Libraries" are a little different from document or form libraries. The "All Pictures" view (in a picture library) gives you selections for - Details, - Thumbnails or - Filmstrip. It appears that whatever selection you last made (of these three) is what you are returned to upon your next visit. I need to control this so that each time any user enters the picture library that the details view is used.Please help me, I am baning my head to the wall since 2 days, I tried everything but could not get it to workThanksKC
September 26th, 2008 4:46pm
Moving this to Admin.Obviously the Programming forum guys didn't think it was their problem.
Free Windows Admin Tool Kit Click here and download it now
October 1st, 2008 9:17am
Hi Chandra2,I happened to work on a similar issue and found a solution. In a nutshell, you will need to call the SharePoint javascript function, javascript:SwitchViewStyle('list'), from the "All Pictures" view to set a default view as a "Details" view. I posted the complete steps how to set a Filmstrip as a default view on my blog posting. In your case, you will need to set a javascript inside a Content Editor to SwitchViewStyle('list') instead of SwitchViewStyle('filmstrip').By the way, I don't think the question cannot be answered in the administration forum but in customization or programming forum because the nature of the problem requires a client-side programming to solve the issue.Thanks,-Jason
Hi Jason,
Can you give me the javascript that set default view to "filmstrip". I checked couple links about this, they are broken.
I really appreciate for your helps.
Jane
March 30th, 2010 4:43pm
Jane,
Hope this helps
http://shopsharepoint.com/blog/18-filmstrip-as-the-default-view-style-in-sharepoint-2010-picture-library.aspx
Free Windows Admin Tool Kit Click here and download it now
April 3rd, 2011 2:07pm