Hi,
here is the code of missing data source, but I realized that you need something else. Following example works with a media library, not with images under specific folder.
<%@ Register Src="~/CMSWebParts/MediaLibrary/MediaFileDataSource.ascx" TagName="MediaFileDataSource" TagPrefix="uc1" %>
<%@ Register Src="~/CMSWebParts/MediaLibrary/MediaGalleryFilter.ascx" TagName="MediaGalleryFilter"
TagPrefix="uc1" %>
<uc1:MediaFileDataSource
ID="cntMediaFileDataSource"
runat="server"
LibraryName="czechcities"
FilterName="cntMediaGalleryTree"
FileIDQueryStringKey="fileid"
EnableViewState="false" />
<uc1:MediaGalleryFilter
ID="cntMediaGalleryFilter"
runat="server"
FilterMethod="0"
FileIDQueryStringKey="fileid"
SortQueryStringKey="sort"
EnableViewState="false" />
Actually, you have a folder and images under this folder and you would like to display them in case user click on the folder.
In this case you can use following web part:
<%@ Register Src="~/CMSWebParts/Viewers/Effects/lightbox.ascx" TagName="lightbox" TagPrefix="uc1" %>
<uc1:lightbox runat="server" ID="LightboxImageGallery" ClassNames="CMS.File" TransformationName="CMS.File.lightbox"
SelectedItemTransformationName="CMS.File.imagegallery_detail800" EnablePaging="True"
PagingMode="querystring" PagerPosition="bottom" PageSize="12" LightBoxOverlayOpacity="0.7" EnableViewState="false" UseUpdatePanel = "true" />
This web part has a property UseUpdatePanel so you do not need to insert the standard one.
The whole example you can see if you install a default Corporate site ASPX. The example is in the section Images -> USA.
The template which is used you can find here:
~/CMSTemplates/CorporateSiteASPX/Images/LightBoxGallery.aspx
In the Images folder you can find two other ways how to display images inserted under some folder.
Best regards,
Ivana Tomanickova