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
Multiple images in News/CGBlog with lightbox
-
- Forum Members
- Posts: 17
- Joined: Thu Oct 18, 2007 3:02 pm
Re: Multiple images in News/CGBlog with lightbox
Of course it is.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.
Lightbox/fancybox show a thumb that links to a larger image. CGSmartImage is perfectly capable of creating multiple images with different sizes.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.
It's all up to you and the template you create
I don't know another solution than creating a number of definitions. That will indeed restrict the amount of images.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..
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
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.
-
- Forum Members
- Posts: 17
- Joined: Thu Oct 18, 2007 3:02 pm
Re: Multiple images in News/CGBlog with lightbox
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.
I'll try to work it out using the field definitions an CGSmarty then, i'm not experienced enough to make my own UTD.