1. erikoraka
  2. Sherlock Holmes
  3. Commercial Templates
  4. Friday, 15 October 2021
  5.  Subscribe via email
Hello Ciaran,

I have a question about news carousel. I have added three items in a two column news carousel. But when I click the next page button in order to see the third item, I see the third item along with the first item again.

Is there a way to only see the three items without them being repeated when I click the next button at the right corner? To be more specific I want to see item 1 and 2 in page one and when I click next I want to only see item 3 without item 1 to be shown next to item 3.

Here I send you the url: http://www.arthrojoint.gr

And I also send you some screen shots..

I really appreciate your help.

Kind regards,

Eri
Attachments (4)
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Eri

I believe this should be possible with the use of an override for your module. Create an override for the J51 News module and then look for the following code within it...

$document->addScriptDeclaration('
document.addEventListener("DOMContentLoaded", () => {
var slider = tns({
container: "#j51news'.$j51_moduleid.'",
items: 1,
slideBy: "page",
nav: false,
autoplay: '.$j51_autoplay.',
autoplayTimeout: '.$j51_autoplay_delay.',
speed: '.$j51_trans_speed.',
mouseDrag: true,
controlsContainer: "#j51news'.$j51_moduleid.'-controls",
autoplayButton: "#j51news'.$j51_moduleid.'-play",
mouseDrag: true,
});
');
}


You can amend this options object to your own taste adding the extra properties that are needed as detailed here... https://github.com/ganlanyuan/tiny-slider

If I understand you correctly, I believe you will need to add and set rewind to true.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.

Ok