Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Picture library custom view reverts to thumbnail view

  Asked By: Anderson    Date: Feb 22    Category: Sharepoint    Views: 7735

Hoping there's an easy explanation for this one:

Business requirement is to provide a picture library with thumb of the
image and, next to or underneath it, a URL to an externally hosted image
set. The customer would like a clean look without image size, file type
detail, etc. The library has to be a picture library because the thumbs
are featured in a rotating image web part elsewhere in the site.

Since the standard Thumbnail view won't show anything but the file name
under the image, I built a custom view I'll call Test, which I made the
default view. Only three columns are selected: Thumbnail, Gallery/Set
Link, and Edit linked to item. This view produces the desired result of
a thumbnail image in the first column, and the URL next to it.


1. Any time I try to modify the view, SP adds back the file size,
name (linked to display items), picture size, selection checkbox (select
a picture) and type (icon linked to document) columns. I have to keep
removing them from the view.
2. While Test is the default view, others who have read or
contribute rights to the site see the standard thumbnail view. Test is
the selected/displayed view name in the view dropdown, but the actual
layout of the view is the standard thumbnail one with just the image and
file name below it. When I go to the library, I see my Test view as I
configured it. This is true even with my test account, and true after I
have cleared cache and opened a new browser window. The other folks who
get the more standard thumbnail view (being identified as Test but not
rendering as Test) have also cleared cache and tried again, but no luck.
They do not see the Test view as it has been configured.

This is making me nuts. Can anyone offer assistance?



4 Answers Found

Answer #1    Answered By: Rosemarie Cervantes     Answered On: Feb 22

This has been frustrating to me, also. My solution was to create a new
view of the libraray, and edit  it in SP Designer. Then, convert the
list view  to XSLT. That way, you can make any customizations, and even
put a thumbnail  column, and it will always stay that way.

Unfortunately, this will unghost the page. Therefore, here's the best
Convert to XSLT, get the view exactly the way you want it, and save the
page. Then, in the browser, export the web  part. THEN, you can go to
any page on your site, and import the web part. That way, the page is
clean and ghosted. You can delete that original unghosted page.

Answer #2    Answered By: Manan Kadu     Answered On: Feb 22

I don't know how to edit  the view  in Designer and convert
to XSLT. If you've got time  to give instructions, that would be great.
And if anyone knows of a simpler way to lock down the custom  view.

Answer #3    Answered By: Tonia Franco     Answered On: Feb 22

Okay, here are the instructions:

1. Open SP Designer
2. Click <File> and <Open site>, and put the URL of your site  in there
to open it.
3. Navigate to the picture  library, and open the ASPX file  of the new
view you just created (in the pic library's Forms folder)
4. Right-click on the list view, and choose "Convert to XSLT".
5. If needed click the little "chevron" (button) and choose to Edit
Columns, to add and remove any. Be sure that the view  now looks just
like you'll want it to look.
6. Save

(Here's how I added the thumbnail  image as a column:)
1. When you're in Designer, after you've converted to XSLT, add a new
column to your table. In the code, find the <td> tag for the first cell
in that column. This is what I put in it:
<img border="0" src="{@FileRef <mailto:{@FileRef> }" width="132"
height="138" />

Answer #4    Answered By: Amareswar Karkera     Answered On: Feb 22

I don't see "Convert to XSLT" in your step 4. what I miss?

Didn't find what you were looking for? Find more on Picture library custom view reverts to thumbnail view Or get search suggestion and latest updates.