Hi,
here is a code example which could help.
Imagine you have a structure:
images (cms.menuitem - document with a repeater web part)
-- aaa (cms.folder)
--- image1
--- image2
-- bbb (cms.folder)
---image3
In the main repeater you can configure Path (/images/%) and Document types (cms.folder) properties.
In transformation property you can use following code so each set of images will be displayed under its folder name:
<%@ Register Src="~/CMSWebParts/Viewers/Effects/lightbox.ascx" TagName="lightbox"
TagPrefix="uc1" %>
<b><%# Eval("NodeName")%> </b>
<p>
<uc1:lightbox runat="server" ID="folderGallery" TransformationName="CMS.File.Lightbox"
Path='<%# Eval("NodeAliasPath").ToString()+ "/%"%>' EnableViewState="false" ClassNames="cms.file"/>
</p>
<script runat="server">
protected void Page_PreRender(object sender, EventArgs e)
{
folderGallery.ReloadData();
}
</script>
Best regards,
Ivana Tomanickova