Image Gallery Link

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
11/8/2011 8:17:43 AM
Gravatar
Total Posts 27

Image Gallery Link

Hi

In image gallery, i just want to change the link that means if user will click on any of the images it should redirect to my pages like home page or some other. can anyone guide me  where i can find that link to replace it..

thanks in advance..

11/8/2011 10:28:17 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Image Gallery Link

If you're talking about clicking on a thumbnail image, the links are built up programmatically in the image gallery code, so you'd want to clone the image gallery feature and customize it to your needs. If you mean clicking on the full-size image displayed by Colorbox, I think you'd have to do some JavaScript coding for that one.

11/8/2011 12:00:34 PM
Gravatar
Total Posts 27

Re: Image Gallery Link

hi Jamie E,

you got my problem. i wanna give separate links for all gallerly images.. suppose if i'll click on first image it should not redirect to thumbnail image,  i wanna give it "<mojo/home.aspx>"..

I have three gallery image & i wanna give link with three pages that i have created.. I'm trying with gallery.ascx page with the following code.

<asp:Repeater id="rptGallery" runat="server" >
<ItemTemplate>    
     <%# GetThumnailImageLink(DataBinder.Eval(Container.DataItem, "ItemID").ToString(), DataBinder.Eval(Container.DataItem, "ThumbnailFile").ToString(), DataBinder.Eval(Container.DataItem, "WebImageFile").ToString(), DataBinder.Eval(Container.DataItem, "Caption").ToString()) %>
    </span>      
</ItemTemplate>
</asp:Repeater>

as you told Jamie to  create javascript but where should i call  javascripts?,

 

 

11/8/2011 12:12:11 PM
Gravatar
Total Posts 18439

Re: Image Gallery Link

I recommend don't modify any of the mojoPortal code.

11/8/2011 12:42:19 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: Image Gallery Link

If you have just three images and three corresponding links, I wouldn't recommend using the Image Gallery at all. I'd place the images into an HTML feature instance and make them link to the pages you want. That will be much less work than trying to force Image Gallery to do something it's not designed to do.

You might also consider using the Slide Show settings of the HTML feature. and turn your three images into a rotating, clickable slideshow. You can see how this looks on the main page of our site.

It also sounds like a Nivo Slider feature might be incorporated into mojoPortal in an upcoming version.

Jamie

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