Drupal 8, Where to external libraries

Submitted by shiv on Wed, 06/29/2016 - 00:24

In Drupal 8 external libraries like Jquery, Cycle plugins etc need to put into libraries folder which is located at the root of site. It's unlike D7. 

Here are few steps for working with external libraries for Views Slideshow.  For Views Slideshow we need "jquery.cycle" plugins libraries. -

  • Extract the folder you just downloaded.
  • Rename the folder to /jquery.cycle/
  • Upload the files to the /libraries/ folder in the root of your site. This is different from Drupal 7, so be careful.
  • When you're finished, your folder structure will look like this:

 

Vendor

Some external libraries are also stored into /vendor folder on Drupal root.

Sample blackbox block

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas non porta odio, id mattis erat.

Nam sed tincidunt eros. Donec a venenatis odio, vitae commodo sem. Vivamus ullamcorper pellentesque erat, in adipiscing tortor scelerisque sit amet. Nulla pulvinar urna magna. Vivamus a ipsum lorem. Etiam adipiscing pulvinar lorem.