Skip to content
This repository has been archived by the owner on Jan 5, 2018. It is now read-only.

Slideshow media bundle #6

Merged
merged 1 commit into from
Jun 21, 2016
Merged

Conversation

vijaynandwani
Copy link
Contributor

No description provided.


You can use the slick library to improve the gallery display.

1) Download [Slick Library](https://github.com/kenwheeler/slick/) and extract it in libraries directory. Required assets should be available at /libraries/slick/slick/slick.css
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be great to include this in the module by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. I'll mention the required libraries as a requirement for the module. And should we include the slick extras module too or mention in the readme for extra styles. https://www.drupal.org/project/slick_extras

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would provide a minimal working configuration with as little dependencies as possible (probably just the slick and slick_media modules) and export that.

optionset_thumbnail: ''
skin: ''
skin_thumbnail: ''
image_style: slick_media
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to call this image style "slick_media". I would expect something that would suggest a gallery item.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also provide a new "Gallery item" View mode for both "Image" and "Video" and configure it to only display the media item with our image style.

@paranojik
Copy link
Contributor

I'm afraid you'll have to take care of installing all the dependencies in the 'before' script othwerwise the test won't pass, because media won't install.

@vijaynandwani
Copy link
Contributor Author

@paranojik dependencies are being installed. Tests are passing. There is still some problem with schema defined incorrectly but I have already opened an issue for that.

@vijaynandwani
Copy link
Contributor Author

Even though I have added our own image style, it is not being used because of the vanilla value being true. You should review it once again to see if we actually need our own image style or not.

@paranojik
Copy link
Contributor

what vanilla value are you referring to? we do need our own style because
if someone wants to swap slick for something else the style has to
persist...
On 21 Jun 2016 1:26 p.m., "Vijay Nandwani" notifications@github.com wrote:

Even though I have added our own image style, it is not being used because
of the vanilla value being true. You should review it once again to see if
we actually need our own image style or not.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#6 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AFlEdy5RS-NBOFx0-NwDiS8oQfdJrWe6ks5qN8pwgaJpZM4I2J6B
.

@vijaynandwani
Copy link
Contributor Author

@paranojik Yeah that's right. I have made new image style without any effect for gallery items. You can review it now.

@ToDo
1. Enable the module
2. visit /media/add to add media content to website.
3. Visit /admin/structure/media to edit the default media bundles.

Copy link
Contributor

@paranojik paranojik Jun 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot to transfer the installation instructions from the Media library PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No i didn't. We have included slick module in dependency so those instructions are useless now. I'll remove them from media library PR

@paranojik paranojik merged commit 4faedfa into drupal-media:8.x-1.x Jun 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants