Answered SPS 2010 Customization - Photo Librbary - Force Filmstrip View

  • 2012年5月3日 下午 06:59
     
     

    Hello Community,

    I know that the All Pictures view has a nice "Filmstrip View", is there a way to force this view or a way to modify this view to add additional metadata elements?

    Thanks!

    Tom


    Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award - Linked-In - SharePoint Gypsy

所有回覆

  • 2012年5月3日 下午 04:26
     
     

    Hello Community,

    I am working in SPS 2010 with a Photo List, and I want to customize the web part style. Currently the web part shows a check box and the file name under every photo.  I want to add two additional columns under the photo - Title, and Description.  Has anyone else done this?  Can this be done with an attached XSLT file?  If so can you provide some sample XSLT?

    Thanks!

    Tom


    Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award - Linked-In - SharePoint Gypsy



  • 2012年5月3日 下午 07:11
     
     

    Hello Community,

    OK, I found out how to force the filmstrip view, simply add this line of JavaScript to a CEWP that is placed below the Photo Web part:

    <script type="text/javascript">SwitchViewStyle('filmstrip');</script >

    That works great.  But does anyone know a way to modify this view to add additional metadata elements?

    Thanks!

    Tom


    Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award - Linked-In - SharePoint Gypsy

  • 2012年5月4日 上午 10:12
     
     

    Yes,

    You can use the XSLT file to create your own <xsl:template> as per your required HTML formatting.

    By creating the custom <xsl:template> under the itemstyle.xsl, you can use this template with your content query webpart.

    otherwise, you can create your seperate xsl file and under the listview webpart in Miscellaneous section give path of your xsl file.


    Please Mark Post as Answer once you get the solution for your issues.

    Thanks,
    Kunal Govani

  • 2012年5月4日 下午 01:13
     
     

    Hello,

    Can you provide me or point to some examples?

    Thanks!

    Tom


    Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award - Linked-In - SharePoint Gypsy

  • 2012年5月7日 上午 08:18
    版主
     
     已答覆

    Hi Tom,

    How about try this way:

    1. Create a view, select Thumbnail (or Preview), Title, Description and other additional fields visible in this view.
    2. Extend Style section > Select another style like "Document Details", "Newsletter". (The default view style is "Picture Library Details")
    3. Click OK and see if it meets your requirement.

    Best regards,
    Emir


    Emir Liu

    TechNet Community Support



  • 2012年5月7日 上午 09:47
    版主
     
     已答覆

    Hi Tom,

    I would like suggest you try following 2 workarounds:

    1. Change another view style like "Document Details", "Newsletter".

    2. Use 2 data view web parts, make filter data connection between them. So when a item is selected in the first web part, related details will display in the second web part.
    1) All these 2 web parts get data source from the picture library.
    2) First web part: Only add one field, like Title field or URL Path field.
    3) Second web part: add all necessary fields like
    Title, Description field. And don't forget to add the URL Path field, this field is used to preview related picture.
    4) Add connection between these 2 web parts, send ID field from the first web part to also the ID field in second web part.
    5) Done.

    Best regards,
    Emir


    Emir Liu

    TechNet Community Support

    • 已標示為解答 Tom Molskow 2012年5月31日 上午 12:48
    •  
  • 2012年5月7日 下午 01:04
     
     

    Hello Emir,

    Thank you for that answer, and yes, I am very familiar with the view's style section, unfortunately that does not answer my question.  I want to keep the current "All Pictures Thumbnails" style but I want to add addtional metadata to the Thumbnails view, currently the metadata is only filename.

    Thanks!

    Tom


    Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award - Linked-In - SharePoint Gypsy


    • 已編輯 Tom Molskow 2012年5月7日 下午 01:05
    •  
  • 2012年5月7日 下午 01:07
     
     

    Hello Emir,

    I will try that today and then LYK if it igves me the results I need.

    Thanks!

    Tom


    Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award - Linked-In - SharePoint Gypsy

  • 2012年5月7日 下午 06:53
     
     

    Hello Emir,

    Thanks for that suggestion but it is just not the answer I am looking for.  I need to be able to display the thumbnails view only, but with different metadata then the default fielname.  Is there some way to do this with a little JQuery?

    Thanks!

    Tom


    Tom Molskow - Senior SharePoint Architect - Microsoft Community Contributor 2011 and 2012 Award - Linked-In - SharePoint Gypsy

  • 2012年5月25日 下午 10:44
     
     

    Tom,

    I looked into this, and I have not found a way to do what you are asking.  It does seem possible, but I have not found the combination out.  I suggest that if you cannot get the answer you are looking for on this from the newsgroup, ping us direcctly and we can see if we can look into this further.

    Link:http://support.microsoft.com/default.aspx?id=fh;en-us;offerprophone



    Patrick Cole - MSFT