Monday, June 18 2007 on other
When designing this new theme, I knew that designing the gallery would be important and a lot of work. I wanted an AJAX feel if possible, but I didn't want to have to go through a huge learning curve just for that. So when I saw the AJAX Gallery Review on Smashing Magazine, I thought I would implement one of them. The one that I thought was most interesting was Slimbox. Implementing this was far easier than I could have ever imagined. Here is the process:
<CSControl:Script ID="Script1" runat="server" Src="~/Themes/BW/Common/mootools.v1.11.js" /> <CSControl:Script ID="Script2" runat="server" Src="~/Themes/BW/Common/slimbox.js" />
<CSGallery:GalleryPostData runat="server" Tag="span" LinkTo="Image" LinkRel="lightbox[Gallery]">
<%@ Page Language="C#" MasterPageFile="../common/BW.master" AutoEventWireup="true" Inherits="CommunityServer.Controls.CSThemePage" %> <%@ Import Namespace="CommunityServer.Components" %> <%@ Register TagPrefix="MW" TagName="CSBadge" Src="~/Themes/BW/Common/CSBadge.ascx" %> <%@ Register TagPrefix="MW" TagName="RecentImagesSB" Src="~/Themes/BW/Common/RecentImages.ascx" %> <%@ Register TagPrefix="MW" TagName="TechnovangelistLogin" Src="~/Themes/BW/Common/TechnovangelistLogin.ascx" %> <%@ Register TagPrefix="MW" TagName="Subscriptions" Src="~/Themes/BW/Common/Subscriptions.ascx" %> <%@ Register TagPrefix="MW" TagName="PhotoTagCloud" Src="~/Themes/BW/Common/PhotoTagCloud.ascx" %> <asp:Content ID="Content1" ContentPlaceHolderID="PageHead" runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="SiteContent" runat="Server"> <CSControl:Script ID="Script1" runat="server" Src="~/Themes/BW/Common/mootools.v1.11.js" /> <CSControl:Script ID="Script2" runat="server" Src="~/Themes/BW/Common/slimbox.js" /> <CSGallery:GalleryData Property="Name" LinkTo="ViewGallery" runat="server" CssClass="ContentTitle" /> <div class="CommonContent"> <CSGallery:GalleryData ID="GalleryData2" Property="Description" runat="server" /> <div class="ClearLeft"> </div> </div> <div class="CommonContent"> <h3 class="ContentHeader"> Photos</h3> <CSGallery:GalleryPostList runat="server"> <QueryOverrides runat=server PagerID="Pager" PageSize="45" /> <ItemTemplate> <CSGallery:GalleryPostData runat="server" Tag="span" LinkTo="Image" LinkRel="lightbox[Gallery]"> <ContentTemplate> <CSGallery:GalleryPostImage ImageType="thumbnail" Height="100" Quality="60" runat="server" /> </ContentTemplate> </CSGallery:GalleryPostData> </ItemTemplate> <NoneTemplate> <div class="CommonBodyContent"> <CSControl:ResourceControl runat="server" ResourceName="ForumMembers_NoRecords" Tag="Em" /> </div> </NoneTemplate> </CSGallery:GalleryPostList> <div class="PictureListControls"> <div class="PictureListPager"> <CSControl:Pager ID="Pager" runat="server" ShowTotalSummary="true" /> </div> </div> </div> </asp:Content>
Setting this up was so incredibly simple. I was shocked at how easy it was. And I think the effect is fantastic. Do you like this or would you prefer the standard static gallery view???