Page 1 of 1
Gallery Image Category
Posted: Tue May 12, 2015 8:05 am
by Barrowboy
Hi, All you experts.
I am using the latest version of cmsms and gallery version 2.0.2
I am trying to see if its possible to have one gallery folder with all gallery images in and each image given a category name and then from the gallery to be able to the select the category to change the display maybe from a dropdown list.
I assume a couple of Field Definitions would be required but how could these be added to the template to achieve this.
I am using the Lightbox template.
Thanks
Re: Gallery Image Category
Posted: Tue May 12, 2015 8:17 am
by velden
Not sure what you want to accomplish. It might be easier to use sub galleries.
Re: Gallery Image Category
Posted: Tue May 12, 2015 10:14 am
by Barrowboy
Hi Thanks
I have tried the sub galleries but I was trying to create a dropdown to select groups of images and not have to create a page for every sub gallery. Otherwise the subs all appear all on the same page.
Cheers
Re: Gallery Image Category
Posted: Tue May 12, 2015 10:40 am
by velden
I think that's possible using sub galleries. Perhaps using the gallery tree action/template. Or by using {gallery ...} tags inside the template.
Actually I know it's possible, I once made a proof of concept using dropdowns based on sub folders and using Ajax to actually download the images.
Re: Gallery Image Category
Posted: Wed May 13, 2015 1:03 pm
by Barrowboy
Hi Velden
I have now added a field called dropdown to the images which allows me to select a category which seems fine.
But how do I display the field and array in a template. I am using this within the foreach loop.
{$image->fields.dropdown} and {$image->fields.dropdown.value}
Not sure if the value should have some sort of ref.
I was hoping that selecting a category from the dropdown would just display those images.
Am I barking up the wrong tree?
Thanks
Re: Gallery Image Category
Posted: Wed May 13, 2015 3:07 pm
by velden
Well, you can use templates for that. All information is available. But it's not very simple to set it up (unfortunately)
Re: Gallery Image Category
Posted: Fri May 15, 2015 4:47 pm
by Barrowboy
Hi again
What I am trying to do is display images from different folders.
I have 1800 images to display.
The idea is to have 10 main category's / folders and 40 others.
The idea being if one of the main folders was to say 'Building' and in the others various streets names, you would select one of these for the street showing the buildings for that street, but by selecting 'Buildings' this would show all the streets.
I have created a dropdown which selects a list of all folders but unable to combine the main group with the others.
Any ideas.
Cheers