In OOB Picture Library, we were not able to see the default library thumbnail view and it’s check boxes.


Some time you have highly customizable sites( including custom master page), you create a picture library using the OOB template but you didn’t find the thumbnail view and check boxes with the images.

To get this view, We need to add the “PlaceHolderLeftActions” in the visible area of the master page because picture library AllItems.aspx(it’s available at  \12\TEMPLATE\FEATURES\PictureLibrary\PicLib folder) is overriding this content place holder to render the results. We removed “PlaceHolderLeftActions” the content place holder from asp panel where panel’s visible property set to false and added it in the visible content place holder.  Here is the code snippet of“PlaceHolderLeftActions” :-

    1: <asp:ContentPlaceHolder ID="PlaceHolderLeftActions" runat ="server" />


This is the implementation of the “PlaceHolderLeftActions” content place holder in the AllItems.aspx of the Picture Library :-

    1: <asp:Content ContentPlaceHolderId="PlaceHolderLeftActions" runat="server">
    2:               <TABLE style="padding-top: 8px" cellSpacing=0 cellPadding=0 border=0 width=100%>
    3:                   <TR valign=top><TD><SharePoint:RelatedTasks runat="server"/>&nbsp;</TD></TR>
    4:               </TABLE>
    5:               <TABLE id=ImgPreviewTable cellSpacing=2 cellPadding=0 border=0 width=100% style="display:none">
    6:                   <TR><TD vAlign=center ><SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,piclib_picturePreview%>" EncodeMethod='HtmlEncode'/></TD></TR>
    7:                   <TR><TD class="ms-navline" width=128><IMG SRC="/_layouts/images/blank.gif" width=1 height=1 alt=""></TD></TR>
    8:                   <TR>
    9:                     <TD vAlign=center align=center style="padding-top:3px" onClick="ClickPreview(); return false;">
   10:                           <a name="lnkPreviewImg" id="lnkPreviewImg" href="Javascript:"><img SRC="/_layouts/images/preview.jpg" NAME=ImgPreviewThumbnail ID=ImgPreviewThumbnail class=thumbnail height=90 width=120 alt="<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,piclib_picturePreview%>' EncodeMethod='HtmlEncode'/>"></a><br>
   11:                           <a name="lnkPreviewTitle" id="lnkPreviewTitle" href="Javascript:" class="ms-imglibPreviewTitle">"<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,piclib_pictureFileName%>' EncodeMethod='HtmlEncode'/>"</a>
   12:                     </TD>
   13:                   </TR>
   14:               </TABLE>
   15: </asp:Content>