Styling the Image Gallery (Simple Folder Version)

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
8/25/2011 7:01:12 AM
Gravatar
Total Posts 51

Styling the Image Gallery (Simple Folder Version)

Hi, 

Is there a way (simple / straightforward) to style the Image Gallery (Simple Folder Version), so that it can include jquery Lightbox plugin? fx:

<asp:HyperLink ID="HyperLink7" runat="server" NavigateUrl='<%# Eval("Image.Url") %>' Target="_blank" CssClass="lightbox">
                            <asp:Image ID="Image6" runat="server" AlternateText='<%# Eval("DisplayFullResolutionTooltip") %>' ImageUrl='<%# Eval("Image.PreviewUrl") %>' />
                        </asp:HyperLink>

or

<a href='<%# Eval("Image.Url") %>' Class="lightbox"><img src='<%# Eval("Image.PreviewUrl") %>'  alt='<%# Eval("DisplayFullResolutionTooltip") %>' /></a>

I created a usercontrol "lightboxcontrol.ascx" an add it to FoldergalleryModule.ascx, but nothing is working.

<%@ Control Language="C#" AutoEventWireup="false" CodeBehind="FolderGallery.ascx.cs" Inherits="mojoPortal.Web.GalleryUI.FolderGalleryModule" %>
<%@ Register TagPrefix="uc1" TagName="LightBox" Src="~/Controls/SernoControls/LightBoxControl.ascx" %>

Hope you can help. 

Totem

8/25/2011 7:11:14 AM
Gravatar
Total Posts 18439

Re: Styling the Image Gallery (Simple Folder Version)

Sorry, but I don't know of a solution for that. The folder gallery is something I got from codeplex several years ago and modified it to work in mojoPortal, it is what it is and does what it does and it is not easy to change it because of the way it is implemented. It is very complicated to even understand the way it works because the control is also an http handler and it works in different ways depending on the context sometimes as a control and sometimes as an http handler, there is a lot of nuance to really understand it and it is easy to break it by making changes without first understanding all the nuances of how it works.

Currently I have no plans to make further modifications to the folder gallery.

Best,

Joe

8/25/2011 5:51:15 PM
Gravatar
Total Posts 51

Re: Styling the Image Gallery (Simple Folder Version)

Thanks a lot for the reply Joe, I´ll deal with what I have.

Regards

You must sign in to post in the forums. This thread is closed to new posts.