Programmatically setting a Cornerstone Slider Slide to Active?

Hi there!

I use a Cornerstone slider to present elearning content, where users basically access their learning videos via the slides.

I have data that tells me which slides they have already seen (and by deduction thus also know which is the first one next that they have not seen).

For this question let’s assume a user has 6 videos he needs to watch and he has already seen 3 of those.

This means a slider with 6 slides, and the 4 slide should be the active one when this user visits the slider page again.

I expected that in this scenario I could make this 4th slide the active with JQuery one by assigning the class is-current-slide and changing the parameters x-slide-distance and x-slide-balance for all the slides (making values for both 0 for the 4th slide).

However, this does not seem to be the logic used the native sliders… or there is Pro JQuery interfering?

Any suggestions are very welcome!

There is an API for the sliders. It’s not very end user friendly, but hopefully the doc below will help. In the future we’ll hopefully have something simpler to interface with. Have a great day.

1 Like

Just to give you a quick update on this: I did have to get the help from a devs guy, but managed to get it working via the API!

1 Like

Hey Tristan,

Thanks for letting us know that you have managed to resolve your issue.

Cheers.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.