Using image gallery effects elsewhere?

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
6/16/2011 5:42:10 AM
Gravatar
Total Posts 51

Re: Using image gallery effects elsewhere?

Hi Joe & Joe,

Greybox's usage with rel="gb_image[]" is very convenient. Is there any similar method for colorbox?

Thanks,

Erhan

6/16/2011 6:04:50 AM
Gravatar
Total Posts 18439

Re: Using image gallery effects elsewhere?

Hi Erhan,

Yes, there is. Just add class="cblink" to the link and it will open in colorbox.

Best,

Joe

6/16/2011 12:55:07 PM
Gravatar
Total Posts 51

Re: Using image gallery effects elsewhere?

Hi Joe,

Thanks for quick reply. I added class="cblink" to the link and saw that it was opened in colorbox.

It's really easy but colorbox is much wider than image (like window size). Can we change colorbox size so that it has the same size as linked image like greybox or lightbox?

Thanks,

Erhan

 

6/17/2011 7:37:23 AM
Gravatar
Total Posts 18439

Re: Using image gallery effects elsewhere?

Hi Erhan,

You could use a custom class instead of cblink and add script in your layout.master to use colorbox on your custom class then you could have complete control over colorbox configuration.

Note also that you can still use GreyBox if you want by putting IncludeGreyBox="true" on <portal:ScriptLoader in your layout.master file.

Best,

Joe

6/19/2011 1:07:23 PM
Gravatar
Total Posts 51

Re: Using image gallery effects elsewhere?

Hi Joe,

Thanks for information. It helped me a lot. What I like about colorbox is the ability for displaying images, video and flash files.

Best,
Erhan

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