Multiple images in News/CGBlog with lightbox

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
RappScallion
Forum Members
Forum Members
Posts: 17
Joined: Thu Oct 18, 2007 3:02 pm

Multiple images in News/CGBlog with lightbox

Post 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
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Multiple images in News/CGBlog with lightbox

Post 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]
cb2004
Power Poster
Power Poster
Posts: 317
Joined: Wed Jul 04, 2007 3:39 pm

Re: Multiple images in News/CGBlog with lightbox

Post 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.
RappScallion
Forum Members
Forum Members
Posts: 17
Joined: Thu Oct 18, 2007 3:02 pm

Re: Multiple images in News/CGBlog with lightbox

Post 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.
Post Reply

Return to “The Lounge”