Just this: Is there any way to show 2 rows of items?
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | owlcarousel-multi_rows-2389827-7-12.patch | 5.53 KB | sumthief |
| #4 | 2014-12-12_11-03-45.jpg | 55.67 KB | chefnelone |
Just this: Is there any way to show 2 rows of items?
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | owlcarousel-multi_rows-2389827-7-12.patch | 5.53 KB | sumthief |
| #4 | 2014-12-12_11-03-45.jpg | 55.67 KB | chefnelone |
Comments
Comment #1
swim commentedCheck out the #items option, http://owlgraphic.com/owlcarousel/#how-to.
Comment #2
chefnelone commentedAs far as I see the #items option is used to set the numbers of items in ONE row, but not useful to set how many rows, am I right?
Comment #3
doxigo commentedI'd like to know the answer to this one as well
Comment #4
chefnelone commentedSomething like this:
Comment #5
chefnelone commentedComment #6
swim commentedI'm going to keep this open as splitting the view content into multiple rows is possible I just don't have the time to implement this feature. Hopefully these resources can help;
Comment #7
chefnelone commentedI just checked the docs, it seems to be possible. Maybe this can be done by just doing some modifications in the js that fire up the carousel, am I right?
Comment #8
doxigo commentedSo anyone came up with a solution to achieve this in Drupal?
Comment #9
samerjh commentedHere is another example made in html, I wonder how can we wrap each two or three rows in a div in views tpl file, in this way we can get the carousel in multiple rows
http://jsfiddle.net/Owl/TWtwt/
Comment #10
samerjh commentedHi,
I found the solution for my previous question :)
First of all you need to create an "unformatted list" views (not owl carousel view).
then.. Create new tpl file (views-view-unformatted.tpl.php) which is correspond to your view name for example (views-view-unformatted--MyList--block.tpl.php)
in the file add the following code: (i got this hint from http://drupal.stackexchange.com/questions/71420/views-apply-a-wrapper-to...)
and then in your Js code add the following
Best
Comment #11
wafer commentedI myself trying to patch this option for future release.
Comment #12
sumthief commentedHi! I've faced with this problem and tried to make a patch.
This patch provides 3 new settings:
1. Rows number
2. Rows margin (dirty hack, if someone can improve it, please do it)
3. Rows output style (column/string).
So you can output items in multi rows, also you can set margin between rows and select output style.
Comment #13
sumthief commentedComment #14
sudishth commented#12 working for me
Comment #15
jaesperanza commentedThis works great! Thanks, sumthief, chefnelone! Just some CSS and layout is perfect!
Comment #16
anybodySorry but this patch doesn't seem to be clean enough to be commited with its TODOs etc. We'll keep it "Needs work" and available as patch for anyone who needs this, until the patch is clean.
Thank you all very much for you work on it.