Gallery Image Category

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Gallery Image Category

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

Re: Gallery Image Category

Post by velden »

Not sure what you want to accomplish. It might be easier to use sub galleries.
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Re: Gallery Image Category

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

Re: Gallery Image Category

Post 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.
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Re: Gallery Image Category

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

Re: Gallery Image Category

Post by velden »

Well, you can use templates for that. All information is available. But it's not very simple to set it up (unfortunately)
Barrowboy
Forum Members
Forum Members
Posts: 223
Joined: Mon Dec 16, 2013 4:09 pm

Re: Gallery Image Category

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

Return to “Modules/Add-Ons”