Currently our Image Gallery doesn't support library visualization. It lists all images from all folders.
You can create your own custom widget that implements this functionality. Here is a link to a video that provides more information about how to achieve that:
The Albums are on the top level of the hierarchy. The user can create unlimited levels of folders under the top Album. If you want to get a list of the Albums, folders and Images the following code snippet does the job:
var manager = LibrariesManager.GetManager();
//Gets the libraries manager object
var albums = manager .GetAlbums().ToArray();
//Gets an IQueryable of type Album which is on the top of the hierarchy
//which I have converted to Array for convenience
//In order to list the folders under an Album, you need to:
var folders = manager.GetAllFolders(albums);
//If you want to retreive the images from a folder you can do that by calling the ChildContentItems property
var images = albums.ChildContentItems;
Your custom widget should first list All albums and when the user chooses an album, it should list the folders using the GetAllFolders methods.
If you have more questions about custom widgets and image folders. We are happy to assist you.
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items