Comments

gausarts’s picture

Status: Active » Postponed (maintainer needs more info)

"slidesToShow" > 1 is to show more rows/ slide items.
Otherwise no idea what you meant, please clarify.

chefnelone’s picture

StatusFileSize
new56.56 KB
new55.67 KB

I mean 2 rows of items, please take a look a the picture I uploaded.

capture

gausarts’s picture

Perhaps, you may want to use Slick carousel views plugin, say:
You have multi-value images/ media, choose to display 2 of them under Multivalue settings. Style it too look like grid. And Slick will pickup whatever the content of each slide, no matter how many items they will be in it.

gausarts’s picture

Title: Is there any way to show 2 rows of items? » Creating a grid Slick slider
chefnelone’s picture

ok, I'll try it. I will not affect the responsives features, Didn't it?

chefnelone’s picture

I re-read your post and it will not work, since it is not a multivalue field, each slide is a node.

chefnelone’s picture

Category: Support request » Feature request

  • gausarts committed 1e35a00 on 7.x-2.x
    Added new theme_slick_grid() to handle the Grid.
    Added skin Grid to...
gausarts’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new1.09 MB

I haven't had a chance to test it thoroughly, please give it a whirl, and provide review.
Attached is what it looks to me with Bartik.

chefnelone’s picture

Thanks, I will try, It looks just to what I need.
Just one question: each image (in the attached) belong to a different node?

gausarts’s picture

Yes, nodes, or any entity, will do.
I just increased the visible slides to 32. Maybe too less last time ;)

chefnelone’s picture

StatusFileSize
new110.95 KB
new78.55 KB

sorry but I'm afraid I need more help.

Could you please make a capture of the views Format Options and also a capture of the option of the Defalult Slick style or the style you used.

I uploaded my captures:

views

style

gausarts’s picture

StatusFileSize
new75.08 KB
new52.9 KB
new50.4 KB

Oh, my, they look different at yours. Looks like no good for another admin theme ;) Is that Shiny admin?

To create grid:
1. Create a new Slick optionset, say Grid, other than Default. CHoose slidesToShow = 1 for now, later play around.
2. Choose optionset Grid, and skin Grid (later you can change and use own grid)
3. Play with settings, only avoid variableWidth and adaptiveHeight by now.

chefnelone’s picture

StatusFileSize
new100.63 KB

I can't get it working. I think that the problem is in the Views Style Setting. I see different things to your capture, see my last capture.
Could you please export your view and grid style and share the code here: http://pastebin.com/

Yes, I was using Shiny, but I changed to Seven now to make sure the problem is not the theme.
Also mention that I set jquery 1.7 with jquery update.

capture

gausarts’s picture

StatusFileSize
new40.73 KB

Two possible issues I suspect you have:
1. Please use jQuery 1.8, I noticed issue with jQuery 1.7 last time, that's why recommended ">", not ">=".
2. Make sure your views total rows are more than 6 items. Create some 20 or so dummy contents. Less than 6 is ignored. Perhaps later we should make it configurable.

Attached is the export. I am not sure if it will work on your setup.
But please create an image field named "Images" to a Basic page (so Drupal names it "field_images") for just in case.
Also most of them have different optionsets. But you can adjust/create optionsets as you go.

Regarding "Provide Slick field wrapper", you can ignore it by now. Those invisible options are not needed by now for the Grid. They will be visible when "Provide Slick field wrapper" is active.
Perhaps some CSS conflict most likely. They are just for convenience to have consistent wrappers, but ignorable by now.
Element ID is optional, it will be created dynamically if left empty.

Please let me know if you need more info.

chefnelone’s picture

Thanks.
I imported the View. I see that the view has many Displays. Can you please tell me which is the Display which renders the grid I see in your capture: https://www.drupal.org/files/issues/Slick%20Grid.png

gausarts’s picture

It is the one with Display name "Block: Grid".
You can delete unneeded ones ;)

You need to create one dedicated optionset, or use existing one till you change later.

chefnelone’s picture

ok, but I can't get it. Maybe a conflict with other module. Many thanks anyway.

gausarts’s picture

Status: Needs review » Fixed

You are welcome, sorry to hear that. Never thought it could be any harder ;)
Maybe we should consider to build a Slick example module to ease up the process later, but that is for another issue. In the mean time let's close this as the request is fullfilled ;)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

gausarts’s picture

Added grid keywords for easy finding.
The Block: grid sample is provided at slick_example:
admin/structure/views/view/slick_x/edit/block_grid