I wanted to know if I can control or customise the web part repeater with carousel properties using a JavaScript/jQuery ? such as speed or easing or the way the images aligned
3 Answers
If you are using a repeater web part for a carousel in Kentico and you want to be able to set the values for the carousel properties in the repeater configuration you can clone the repeater web part, add the carousel properties into the cloned repeater web part code, and into the Fields in the web part properties. Then you would pass those properties to the front end as javascript variables using RegisterClientScriptBlock
- 1
- 1
- 231
- 1
- 6
You can modify the speed in the initalization script property, just add something like speed: 500
You can read the documentation to see what all you can do with that carousel.
- 746
- 3
- 12
-
I tried modifying the intialization script, but it is not being reflected – Rony Joseph Jan 25 '17 at 16:45
-
@RonyJoseph did you do it in the web part property? – Zach Perry Jan 25 '17 at 16:56
-
Yup, tried different settings like speed, easing etc, doesnt seem to work – Rony Joseph Jan 25 '17 at 18:02
I have done this multiple times. This is what I would suggest you
- Create Page type for your slides Bind it with a repeater (Not basic repeater)
- For markup use Slick slider. It's one of the best library to create slider which are responsive too
You can do anything possible using this slider. I have done all sort of crazy things with slick slider. Let me know if you need any more help on this.
- 1,432
- 12
- 13
-
I see what you are saying, but i am not able to make any changes to the existing carousel using javascript file, nothing seems to affect! – Rony Joseph Jan 25 '17 at 16:47
-
Also, sorry i didnt mention, I am working on an existing project of a firm, they have this carousel, which i think works entirely based on the kentico cms interface properties. What i wanted to accomplish is i have to reposition the carousel differently in different months. – Rony Joseph Jan 25 '17 at 16:48