Page 1 of 1

Multiple images in News/CGBlog with lightbox

Posted: Wed Sep 11, 2013 9:03 pm
by RappScallion
Hi,

Is it possible to add multiple images to a news/blog entry and have them resize on the fly and then be clickable with a lightbox/fancybox kinda thing? I've been bugging with this question for weeks now and i've searched everywhere to no avail.

The thing is, I'd like to make it as easy for the editor as possible so they don't have to use any other module first.

I've used CGSmartImage for the thumbnails before and thats a great module but I don't think it can Lightbox it back in a bigger size.

I was thinking about adding multiple field definitions for the images, but then they would be restricted to the amount of definitions i'd place and don't think that would be a good idea..

Does anybody have a solution for my problem?

Thanks in advance

Re: Multiple images in News/CGBlog with lightbox

Posted: Wed Sep 11, 2013 10:03 pm
by velden
RappScallion wrote:Hi,

Is it possible to add multiple images to a news/blog entry and have them resize on the fly and then be clickable with a lightbox/fancybox kinda thing? I've been bugging with this question for weeks now and i've searched everywhere to no avail.
Of course it is.
RappScallion wrote:The thing is, I'd like to make it as easy for the editor as possible so they don't have to use any other module first.

I've used CGSmartImage for the thumbnails before and thats a great module but I don't think it can Lightbox it back in a bigger size.
Lightbox/fancybox show a thumb that links to a larger image. CGSmartImage is perfectly capable of creating multiple images with different sizes.

It's all up to you and the template you create
RappScallion wrote:I was thinking about adding multiple field definitions for the images, but then they would be restricted to the amount of definitions i'd place and don't think that would be a good idea..
I don't know another solution than creating a number of definitions. That will indeed restrict the amount of images.

In your template you will need to check for every definition if it has a value.

Gallery module for example will allow as many images as you like, but that's not a News/Blog module.



Does anybody have a solution for my problem?

Thanks in advance[/quote]

Re: Multiple images in News/CGBlog with lightbox

Posted: Tue Sep 17, 2013 8:06 am
by cb2004
You can provide a text input field definition to provide a folder name. A UDT could then read the images from that folder and then do the magic with Smarty. You then don't have to maintain a load of field definitions.

Re: Multiple images in News/CGBlog with lightbox

Posted: Wed Sep 18, 2013 4:39 pm
by RappScallion
Thanks very much for the replys.

I'll try to work it out using the field definitions an CGSmarty then, i'm not experienced enough to make my own UTD.