New Balbooa Forms Released

Continue Reading
Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Bug with infinity scroll/pagination

2 weeks 9 hours ago #1

  • Marc's Avatar
  • Marc
  • Posts: 12
I have a single gallery with 12 sub-categories. I've created an article for each of the sub-galleries so they can be displayed separately. When I enable Pagination > Infinite scroll, the gallery displays all images from all sub-categories. The only way to display the specific sub-category is if I choose default or load more.

Is this a bug or am I not configuring correctly? I would like for each sub-category to have infinite scroll if possible.

Thanks

1 week 6 days ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 8916
Hello,
Thank you for contacting us

Send us a link to page with problem.
Send us FTP access and Joomla admin access via our contact form.
support.balbooa.com/contact-us

Regards,
Vyacheslav, Balbooa.com

1 week 11 hours ago #3

  • Marc's Avatar
  • Marc
  • Posts: 12
Yeah, I'm not comfortable providing you with admin access as I have PII issues. Here are reproduction steps:

1. Create 2 sub-catergories in gallery
2. Populate both categories with different images
3. Under gallery settings, go to 'pagination' and choose infinity
4. Create an article in Joomla referencing gallery - sub-category 1
5. Create a second article in Joomla referencing gallery - sub-category 2
6. Launch either article page and view that all images are being displayed
7. Go back into gallery settings, change pagination to 'load more'
8. Launch article page and view only images in that sub-category is displayed

Expected behavior: Launch article page and view only images in that sub-category is displayed

Actual behavior: All images being displayed from all sub-categories when pagination is selected as 'infinite'

6 days 15 hours ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 8916
Hello,
Thank you for contacting us

You need at the bagallery.php (/components/com_bagallery/helpers/bagallery.php)

after line 853
$html .= "' data-gallery='" .$id. "'";
insert :
if ($categorySelector && !empty($catSel)) {
            $html .= ' data-category=".category-'.$catSel.'"';
        }

At the ba-gallery.js (/components/com_bagallery/assets/js/ba-gallery.js) line 58 replace
category = gallery.find('.ba-filter-active').attr('data-filter'),
to
category = gallery[0].dataset.category ? gallery[0].dataset.category : gallery.find('.ba-filter-active').attr('data-filter'),

Best Regards,
Vyacheslav, Balbooa Support Team

6 days 5 hours ago #5

  • Marc's Avatar
  • Marc
  • Posts: 12
Totally worked! Thanks for your assistance.

Marc

5 days 17 hours ago #6

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 8916
You are welcome ;)

If you like our Gallery and support, please take a moment to rate it!
extensions.joomla.org/extension/6gallery/

Regards,
Vyacheslav, Balbooa.com
Powered by Kunena Forum