Back to IsoGallery Support

epigraphe
epigraphe

Hello. I created two categories. Empirically, I realized that I need to create a gallery, there choose one of the categories and upload photos. The problem is that if I upload some photos to the gallery - you can see only the first. The rest of the pictures are not visible. When I create another gallery with the same category and upload the photo - on the home page shows two photos.

I can not understand - it's a feature (upload one picture in each gallery and select there a category in which they are displayed) or it is a mistake?

If I have to upload 30 pictures need to create 30 galleries?

Sorry for the bad English, I used Google translator for this message.

UpTop
UpTop

Hi! Thanks for trying out IsoGallery!

IsoGallery was designed for a use case in which you add photos to a e.g. project. All of these photos would belong to a certain category. The user would click on the first photo in the project, which opens a slider with the possibility to cycle through all the other photos belonging to that project.

If I understand correctly you want to display all the photos in the gallery instead of just the first?

With out of the box functionality this is not possible, but you can overwrite the component partial in the CMS section. You can look at the github repository to copy the full component partial.

Reference the documentation to get started with overriding component partials.

The partial currently uses a background-image to display the first image, but you could use <img/> tags to display all the images. Just make sure you to add the correct strip data attributes to the correct elements.

Please refer to the strip documentation for correct use of the Strip.JS image slider, as the StripJS plugin uses href in <a/> tags to fire up the slider. You try something like this:

<a href="{{photo.path}} class="strip" data-strip-group="photos-{{loop.parent.loop.index}}" data-strip-caption="{{photo.description}}">
    <img src="{{photo.path}}" />
</a>

Hope this helps!

Note: as the plugin uses custom styling for the partial, some element could have unexpected styling behaviour.

Last updated

epigraphe
epigraphe

Thank you for your support, I'll try to do it now. Another small question - where is functionality to remove galleries and categories in the backend?

And another question: How to change the Sort Order? Now, when I create a new category, it is the first in a list and a picture on the main page, too, is the first. Ideally, if I could have been manually changed its position on the list and on the home page respectively.

Maybe i Can edit this directly in "rebel59_isogallery_galleries" table?

UPD I found this code in ISOgallery.php and changed orderby to a title, but this gives a descending list. How can i reverse it?

$this->page['categories'] = Category::all(); if($this->property('amount') == 0){ $this->page['galleries'] = Gallery::orderBy('title', 'desc')->get(); }else{ $this->page['galleries'] = Gallery::orderBy('title', 'desc')->take($this->property('amount'))->get();

Last updated

1-3 of 3