Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Grouping items in carousell

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

I have a series of categories (4) with three articles I want to keep grouped - so three restaurants, three stores, etc. with each advance. Is there a way to do this?

zt2-carousel-q.jpg
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
Hi

Is this managed by the user e.g. do you have control over the sorting order of articles?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
that is three bridges too far... and they all span an abyss of one form of technical illiteracy or another.
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
Are the articles going to change or new ones be added?
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
They will change - and the client will want them to sort randomly (if not by geolocation) :pinch:
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
hmm a problem

Not sure what to suggest on this

I'll ask the team in the morning
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Is it morning yet?

On the top of our alpha page, if I use your suggestion (not thrilled as it is not client-proof, but it will work), is there a way to make the auto-advance move three slides at a time?

dev link
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
Hi David,

Have you tried the sorting option for 'category id ascending' (or descending)?

That should keep the items ordered by category.

Regards,

Rob
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
It's a workaround that works for *me* but pretty sure the client will not be up to the task of organizing content when they take over the site. (Is it me? seems like technical literacy is declining.) My goal - perhaps not achievable - was to have a group of three taken at random (so there's a problem right there) from each of four categories. When clicking the navigation they advance by threes ok, but on autoplay haven't found a way to advance by three slides at a time.

so three restaurants > three stores > three recipes, etc.
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
Hi David,

If the sorting is set to category then it should group the items together, but the categories would always be in the same order.

To advance by the number of items shown, you would need another override.

Copy
/modules/mod_zentools2/tmpl/carousel.php
to your template directory
/html/mod_zentools2/carousel.php

Then open the file to edit.

The carousel options start around line 82 and you would need to set scrollPerPage to true

eg
......
itemsMobile : false,
lazyLoad : true,
scrollPerPage: true,
stopOnHover: true,
......

That should make it advance by the number of items shown at each breakpoint rather than one by one.

You can add any options mentioned on this page: owlgraphic.com/owlcarousel
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.
The following user(s) said Thank You: blueshift
Awesome. This will be interesting. Enjoying putting Buidr / ZGF to a demanding test. Thanks as always for the fantastic support we get from JB.
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
The administrator has disabled public write access.
Changing that one thing - ScrollPerPage to true results in...
A script on this page may be busy, or it may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue.

Script: http://redacted.com/m…ntools2/js/owl.carousel.min.js:89

The scrollPerPage is at line 112, not grouped as in the earlier configuration you may have been referencing. the link to owlgraphic.com is dead
  • blueshift's Avatar
  • blueshift
  • 6 Month Developer
  • 2579 posts
  • 78 Thanks
  • Karma: 26
Last Edit: 7 years 4 months ago by blueshift.
The administrator has disabled public write access.
Yeah, I thought that might be a temporary issue so got the parameter from google cache of the page.

If you can open a ticket with login details I can look into it for you.
  • Robert Went's Avatar
  • Robert Went
  • Moderator
  • 2210 posts
  • 196 Thanks
  • Karma: 90
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers