Support from Acquia helps fund testing for Drupal Acquia logo

Comments

LewisNyman created an issue. See original summary.

amaria’s picture

Yes, but this is using the libraries module. Which I admit has probably changed somewhat since this was completed. I'll look into again when I get some time.

Chroid’s picture

Agreed. If the D8 library include method is used, the call to libraries_get_path('flexslider'); in the flexslider_library_info_build() returns false, and you end up with the site trying to load assets from, for example - http://flexslider.css which obviously fails.

Network loading

Ramdas Gaikar’s picture

Hello,

Attaching patch for this, But I think there also we need to do some changes in install file.

Thanks.

Sonal.Sangale’s picture

Status: Active » Needs review

Changing the status of issue to review added patch.

amaria’s picture

Status: Needs review » Active

The attached patch will not work since we are using Libraries API to load the FlexSlider assets. Also, it appears to be using the js directly from github as opposed to from a local directory. I am currently looking into removing the dependency on the Libraries API altogether since it still only has a dev release and may be changing drastically in the near future.

  • amaria committed 37f0582 on 8.x-2.x
    Issue #2769355 by Ramdas Gaikar, Chroid: Define library using flexslider...
amaria’s picture

Status: Active » Fixed

I decided to use a hybrid approach which uses both the libraries yml and Libraries API module. I imagine this will change somewhat once Libraries API is more stable.

  • amaria committed 8e47d2b on 8.x-2.x
    Issue #2769355: Define separate libraries for flexslider assets and...

Status: Fixed » Closed (fixed)

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