Hi,
I wonder if someone with a bit more knowledge than me could assist. I'm trying to implement 2 rows rather than 1 on the jcarousel - Firstly, is it possible to do so? And secondly, what would be the best way to do it?
I've searched high and wide and there seems to be a few posts on it but nothing concrete.
The method I'm currently using is to reduce the width of the container via css which has a desired effect, but with a downfall, it leaves the pre-calculated number of pages, so after half way of scrolling, you get a lot of empty pages.
You can see this in effect on the url below, if you click next a few times you can see the empty pages:
http://johnbretherton.com/site/views-video-template
Any help or guidance of any sort would be greatly appreciated.
Thank you.
Comments
Comment #1
kristofferromIt seems like you got this working? Can you tell us how?
Comment #2
tky CreditAttribution: tky commentedsubscribed.
Comment #3
destinationsound CreditAttribution: destinationsound commentedalso interested in finding out how you did this.
The site looks good!
Comment #4
markpavlitski CreditAttribution: markpavlitski commentedComment #5
satvision83 CreditAttribution: satvision83 commentedThe given link from the main post is not working. This one is working http://johnbretherton.com/site/drama-and-documentary and it's from the same website.
I can see that the author of this thread has managed to create jCarousel with two rows. Great job!
With firebug tool I can see that every li has
I hope someone will explain how to achieve this.
Comment #6
drupalfan4ever CreditAttribution: drupalfan4ever commentedDoes anybody know how to create two rows in jCarousel?
Comment #7
dariomem CreditAttribution: dariomem commentedHey Guys,
Sorry haven't been checking back!
Yes, I did achieve it but not entirely sure how as it was a while ago! Will log in tonight to check some of the code and give a bit of an explanation but essentially satvision83 is spot on, it is creating 2 li's. I think it was done either via the views interface or by (sorry!) hacking the jcarousel module to spew out two list items.
It is a bit crude to control in terms of placement, I struggled to get them to go chronologically left to right so
instead of displaying like this:
[a] [b] [c]
[d] [e] [f]
it renders like this:
[a] [c] [e]
[b] [d] [f]
But if that's not a deal breaker for some I will investigate this evening and post back. Sorry for the delay again.
Comment #8
satvision83 CreditAttribution: satvision83 commented@dariomem
I'm really glad that you're back and I'm looking forward to see more details for that nice jCarousel.
Comment #9
dariomem CreditAttribution: dariomem commentedHey guys,
Right, so I've had a look - I think the way I got it to work was to alter the jcarousel css in the modules folder.
Specifically I made the height of the clip bigger to say 600px.
.jcarousel-skin-default .jcarousel-clip-horizontal {
height: 600px;
overflow: hidden;
width: 794px;
}
I can't test it as I'm not on the machine with the files but just looking at the code I think that was what was done. It seems like the jquery will calculate the open space and fill it in (hence the lack of control with the ordering of thumbnails).
Let me know how you get on.
Comment #10
housser CreditAttribution: housser commentedHi,
I got some direction from this post (https://drupal.org/node/1668566), which led me to create a copy of the jcarousel-view.tpl.php, which looks like this:
Comment #11
jpstarter CreditAttribution: jpstarter commentedDid anyone get the multiple rows in jCarousel achieved, with spacing between rows? If so can you help me achieve the same Thanks in advance