IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
In Visual Studio:
<
div
id
=
"control-wrapper"
>
"albumWrapper"
h4
>Filter by album:</
ul
"albumList"
runat
"server"
</
"imagesWrapper"
"imageList"
sitefinity:GenericCollectionBinder
ID
"imageListBinder"
TargetId
ServiceUrl
"~/Sitefinity/Services/Content/ImageService.svc/"
BindOnLoad
"false"
DataKeyNames
"Id"
DataMembers
"Id, Title, ThumbnailUrl"
Containers
sitefinity:BinderContainerID
"imageTitleContainer"
RenderContainer
"true"
ContainerTag
"li"
a
href
"javascript:void(0);"
class
"sf_binderCommand_selectImage"
img
"itemThumb"
sys:src
"{{MediaUrl}}"
/>
"tmb-title"
>{{Title}}</
"tmb-desc"
>{{Description}}</
sitefinity:BinderContainer
"albumBinder"
"~/Sitefinity/Services/Content/AlbumService.svc/"
"Id, Title"
"albumTitleContainer"
li
"sf_binderCommand_selectAlbum"
{{Title}}
In the code, there are two GenericCollectionBinder widgets - one for the images and one for the albums. In addition, there is one HTML server widget, representing an unordered list of images.
The binders in the code are set to:
The items that the services return are rendered according to the BinderContainer template. The parameters inside the curly brackets represent placeholders. The binder replaces them with the corresponding value of the specific properties.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important