Hi,
you could use two nested repeaters web part. The first one would select folders (cms.folder) document type.
Then in its transformation you could use code similar to the following:
<%@ 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>
you could configure where condition in the nested repeater/lightbox web part. Something like:
NodeID NOT IN (SELECT TOP 3 NodeID FROM View_CMS_Tree_Joined_Versions)This way first 3 items/files would not be selected. As a nested control you can use a repeater web part with your external scripts.
Best regards,
Ivana Tomanickova