Sueetie Photo List View Control Goes Client-side

With the upgrade of DBVT.COM from v3.0 to v3.2 I’m able have some new feature fun. One of the first things I wanted to do was revamp the Sueetie Photo List View Control to support the cool client-side functionality of Media Sets. 

Here’s what we’re talkin bout. The thumbnails on the screenshot at right are generated by the Photo List View Control which in the past when clicked would take you to the image in Gallery Server Pro.

With the new SueetieMediaObject properties we can do anything we like with the photos, like fire up the lightbox you see in action on the DBVT.COM Home Page.

You may be thinking, “BFD. I’ve seen lightboxes before.”  That’s true, but what’s cool about the enhanced Photo List View Control is that we’re using Gallery Server Pro and its rich set of features to manage our media—auto-extraction of zip content, file synchronization, granular permissions, all that good stuff. We’re also viewing GSP outside of the application, which is not new, but with the new SueetieMediaObject properties we can now access media by its file path rather than with an .ASHX Handler. That’s what makes it possible to apply jQuery plugins like the CeeBox Lightbox I’m using at DBVT.COM.

What’s also cool is that using the control is as easy as dropping it onto a page like any other UserControl.

<div class="recentPhotosArea">
    <ul class="ceebox images">
       <uc:RecentPhotoList ID="RecentPhotoList1" runat="server" NumRecords="21" />

The control’s .ASCX View file handles the layout with properties and extensions of the SueetieMediaObject (RecentPhoto) object.

<li id="ViewItem" class="RecentThumbnail">
    <a href='<%= RecentPhoto.MediaOptimizedUrl() %>’>
          <img src='<%= RecentPhoto.MediaThumbNailUrl() %>’ alt=""
                class="RecentThumbnailImage" />

Yes, I do like using the latest version of Sueetie. More to come.

Article written by

A long time developer, I was an early adopter of Linux in the mid-90's for a few years until I entered corporate environments and worked with Microsoft technologies like ASP, then .NET. In 2008 I released Sueetie, an Online Community Platform built in .NET. In late 2012 I returned to my Linux roots and locked in on Java development. Much of my work is available on GitHub.