Tag Info

Hot answers tagged

4

using (SPSite site = new SPSite(<siteUrl>) { using (SPWeb web = site.OpenWeb()) { SPList list = web.GetList(<imageUrl>); SPListTemplateType templateType = list.BaseTemplate; int templateTypeInt = (int) templateType; } }


4

You'll want to add a CAMLQuery option to your GetListItems call: CAMLQueryOptions: "<QueryOptions><ViewAttributes Scope="Recursive"/></QueryOptions>", This will result in the recursive querying of all the subfolders.


4

For displaying pictures in Slideshow web part, web images (stored under /_w folder in Picture Library) are used and not the original images. Unfortunately it is not supported to configure in web part what image type (original, web or thumbnail) should be displayed in Slideshow. The solution described below allows to display original images (without ...


3

The maximum file size you can upload is 2GB. Any file over that size will not upload. You can upload all 100GB of pictures as long as they aren't individually 2GB or larger. Here is the TechNet guide on 2010 limitations, http://technet.microsoft.com/en-us/library/cc262787.aspx.


3

I haven't seen anything published as such. The size and type would be limited by the web application blocked file types and the maximum upload size. The maximum number of files would echo the same principles of a large document libary, limit the number of items per view to avoid performance degradation and/or make use of folders.


3

How Picture Library Slideshow web part works Picture items are retrieved via SPQuery from Picture Library and results are saved in internal array of ImageInfo entries public struct ImageInfo { public int width; public int height; public string src; public string fullImageSrc; public string title; public string ...


2

There is an example on codeplex: SharePoint Ad Rotator Introduction: SPAdRotator is a SharePoint Web Part that can randomly display images from a SharePoint library. Images can be displayed either one at a time (a new random image is selected every time the page is loaded), or all images can be displayed while the user is viewing the page (with a ...


2

There is no feature to export a picture library out of the box but you can develop a custom feature in VS 2010 and achieve this. Have a look: http://mctalex.blogspot.in/2009/04/adding-export-to-spreadsheet-to-picture.html


2

You can drag and drop multiple Files (pictures or documents) in SharePoint 2013.


2

Picture libraries do not allow for item level permissions like lists which is unfortunate as you'd think the same should hold true in both places. One option would be to use a workflow tool, like SPD Activities, Nintex, K2, or your own developed action to handle setting item level permissions. With a library of that size, that will cause some performance ...


2

Unfortunately the answer is no, there is no possibility to specify the relative Url for Picture Library. Picture Library Slideshow web part exposes the following properties to query pictures from Picture Library: LibraryGuid - unique identifier (GUID) of the picture library ViewGuid - GUID of the list view in the picture library. These web part ...


1

It sounds like the first image is already rendered before your javascript executes. On idea is to "manually" locate and change the href tag for that image directly in the DOM.


1

are you uploading images programatically, if yes then it will not generate the thumbnails. if you are not uploading it programatically, what are you getting on thumbnails.aspx view please see the property of image, where Airbnb.jpg is my image.and when I hit below address explorer it shows me thumbnail. ...


1

Go to picture library, from the ribbon click on library -> modify view -> item limit, you can see item limit is set to 30, change it to 100


1

Make sure you use the global object (window) when you override it, like this: var oldGenerateFooterContent = window.GenerateFooterContent; window.GenerateFooterContent = function() { console.log('Hello, world!'); // if you want you can call the old function here oldGenerateFooterContent(); }; Update: If you want to provide the same arguments you can ...


1

You can use a css sprite and upload a single image in the document library corresponding to the rollover.


1

You can create another list/library which will hold the second image based on the id of the List Item in the first list. Then you can query that list based on the id and fetch the image on the fly. But the best approach will always be to create a new picture column in the original list and have 2 images associated with one list item. But from your post it ...


1

You could write a custom webservice which either generates the other images on the fly and have jQuery query that - or you generate the images with an event handler on image update/created in the image library into another library and jQuery can get the images from there.


1

the _w is the web version of the image and has the url format you show above. If you keep clicking the images you should be able to view the original at the url you uploaded. Maybe try typing in /comunicacao/news/PublishingImages/01_rh_ricardo%20amorim.jpg and see if it works.


1

What about the websized version? That one defaults to the normal aspect ratio of the image and max height and width of 640px. In some of my lists i've changed this to 1024 to get a higher resolution image.


1

If you want to automate this, I would suggest to trap ItemAdded event and have a thumbnail file generated for the item (filter based on extension) uploaded and then upload it to _w and _t folders. I assume that you know how to programmatically generate a thumbnail though. In past, I had a slightly different scenario where I needed to generate (and add to ...


1

You can split it to several web sites with picture libraries accordingly to image type or image meta information or user groups. That will limit number of files within one library. Also you can use folders for items with same permissions. Please check this article for details about planning fine grained permissions from MS - ...


1

If you have a required field on a new document (or picture) then it is checked out when it is initially uploaded. Check out is ALWAYS enabled, but you can FORCE check out to be used. Further, until that document is checked in for the first time with the required metadata completed, it will only be visible to the user who uploaded it. Even having Site ...


1

It makes sense if the development has not been considering the "Least-priviledged" user, which practically means that developer has tested it with his Administrator power at all times. This would translate into Security permissions missing at some level (e.g. do content authors have permissions on the Top-Level site to read content?) or if you also use it ...


1

jCrop is your answer: public class ImageCrop : LayoutsPageBase private const string WIDTH = "450"; private const string HEIGHT = "200"; protected Image imgJCrop; protected Button btnCropImage; protected Button btnCropImageTop; string strImageURL; protected Label lblErr; protected TextBox txtW; protected TextBox txtH; protected Button btnApplyDimensions; ...


1

First, you can use the Copy and Move actions available on the Manage Content and Structure page. However, this page is only available with MOSS 2007 - pure WSS 3.0 deployments do not have it. Second, there is the option to employ a third-party tool like CopyMove for SharePoint 2007. It was designed for end-users but comes with a price tag.


1

Here are three different ways: 1) open each location with Windows Explorer view and drag-n-drop from one location to the other 2) open each location in SharePoint Designe and drop-n-drag from one location to the other 3) connect with a WebDAV tool like BitKinex to each location and copy from one location to the other


1

I am using the SharePoint client API (javascript) and jquery to enhance the out of the box SharePoint list view functionality. I've used qTip for enhanced mouse overs (it supports images too). I was able to meet my requirements with it. The code snippet below should get you started. Check out these references for fetching files from within folders: If ...


1

Have you considered using different jQuery plugins? Take a look at Nivo Slider


1

Here is an article I wrote for nothingbutsharepoint.com on creating your own content slider. It's based off an announcements list, but the library handling the rotation works for images too. Something similar could be constructed, and it works on both 2007 and 2010, not being reliant on the SharePoint DOM. I'm sure the crux of the issue is the nonstandard ...



Only top voted, non community-wiki answers of a minimum length are eligible