Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was wondering if there are any plans to make it possible to install the Owl library via drush. In the example of Colorbox, this drush command does so: drush colorbox-plugin
(example)
Comment | File | Size | Author |
---|
Issue fork owlcarousel-2445701
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
knalstaaf CreditAttribution: knalstaaf commentedComment #2
swim CreditAttribution: swim commentedHave a go at writing a patch yourself. Happy to help/ point you in the right direction by reviewing.
Comment #3
NiklanI maked a patch which add drush command for download plugin and installing it.
Command is:
drush owlcarousel-plugin
Aliases:
drush owlcarousel-download
drush owl-download
Also, in additional. Drush will download plugin automatically if module is enabled via drush. This means:
drush en owlcarousel -y
is enough - plugin download automatically.
P.s. patch for 7.x-1.x branch
Comment #4
NiklanUse this pacth.
Comment #5
NiklanAne feedback? :(
Comment #6
swim CreditAttribution: swim commentedHey Niklan,
Looks very similar to the Colorbox drush implementation - which is fine. However, I would rather see your own comments and instead of using a specific version reference this download link, http://owlgraphic.com/owlcarousel/owl.carousel.zip. We would hopefully always download the latest release (of the library) then.
Comment #7
NiklanHey, swin. Okay, thanks, i'll fix it.
Comment #8
Plazik CreditAttribution: Plazik as a volunteer commentedAdded the new path. Changes from #4:
sites/site.com/libraries
for example).Comment #9
Plazik CreditAttribution: Plazik as a volunteer commentedI think the module shouldn't automatically download the library without user permission. I've updated the path and added:
Comment #10
ipwa CreditAttribution: ipwa at manifesto commentedFeature requests for the 8.x-2.x branch only
Need to update the integration for Drupal 8 see https://git.drupalcode.org/project/colorbox/-/blob/8.x-1.x/drush/colorbo...
Comment #13
chakkche CreditAttribution: chakkche as a volunteer and at QED42 commentedI will work on this.
Comment #14
chakkche CreditAttribution: chakkche as a volunteer and at QED42 for Drupal Association commentedCreated new drush command to install the libraries and changed the path in libraries.yml to downloaded path.
To test run
drush owlcarousel2:plugin
.Comment #15
ipwa CreditAttribution: ipwa at manifesto commentedComment #17
ipwa CreditAttribution: ipwa at manifesto commentedThank you for your contribution :)
Comment #18
chakkche CreditAttribution: chakkche as a volunteer and at QED42 for Drupal Association commentedComment #19
ipwa CreditAttribution: ipwa at manifesto commentedDon't: Change the status of an issue from "Fixed" to "Closed (fixed)". An issue with the status "Fixed" will be automatically closed as fixed and removed from the list of open issues after 14 days. It should remain open for 14 days after being "Fixed" to cater for regressions and other unintended consequences of the fix.
From: https://www.drupal.org/docs/develop/issues/issue-procedures-and-etiquett...