It's hard to be certainly what type of slideshow you are aiming for and to therefore be sure where the issue exactly is but, looking at a sample next previous slideshow on cycle2.js site:
So if you current item, has multiple children that form the slides then you don't need to include the next and previous buttons in the loop through these items, whereas in your sample it appears they are being repeated for each item? but that may be because I'm not getting what you are trying to achieve!
So I think your code I'm thinking should be more like this:
Umbraco dynamic slide show with cycle2.js
im making a dynamic site using umbraco and need a slide show for it.
The slideshow will be dynamically created depending on the number of children in the content
the full code for creating it dynamically is
somehow the button for next and prev slide doesnt work
Hi Philip
It's hard to be certainly what type of slideshow you are aiming for and to therefore be sure where the issue exactly is but, looking at a sample next previous slideshow on cycle2.js site:
http://jquery.malsup.com/cycle2/demo/prevnext.php
The markup should look something like this:
So if you current item, has multiple children that form the slides then you don't need to include the next and previous buttons in the loop through these items, whereas in your sample it appears they are being repeated for each item? but that may be because I'm not getting what you are trying to achieve!
So I think your code I'm thinking should be more like this:
but may I'm simplifying and you have multiple carousels within carousels or something on the same page?
eg what does items.Children() refer to in terms of your Umbraco structure?
regards
Marc
so for example there is a product i have
the product is made of different parts
each parts is used for something
So in the page i have part A name and the slide show of the functions
also part B and so on
the first foreach is used for the part list and the 2nd is for the part functions.
ah sorry i found the problem.
i use a link as the anchor instead of span which make it go to the href if i click it
sorry for the trouble
You marked your own answer as a solution, while all the examples of Marc are with a span (and not an A tag).
I hope you are kind enough to give him at least a hi-five, a written "thank you very much" or even mark it as a solution... Or all of them together.
done :3
is working on a reply...