Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

droptica/d_p_gallery

 
 

Repository files navigation

Simple gallery paragraph for Droopler

This module is deprecated. It works only with Droopler 1.2. Since version 1.3 it is bundled into Droopler core.

For 8.1.0-alpha1 and alpha2 releases of Droopler please use this unofficial repository.

Installation

  1. Update composer.json

Put this module in the "require" section of your composer.json. Remember to install required Colorbox module and jQuery Colorbox library! I assume you have configured asset-packagist.org and "composer-installers-extender" extension.

"require": {
  "droptica/d_p_gallery":  "^1.0",
  "drupal/colorbox": "^1.4",
  "npm-asset/jquery-colorbox": "^1.6"
}

In the "repositories" section put:

"repositories": {
  "droopler-gallery": {
    "type": "git",
    "url":  "[email protected]:droptica/d_p_gallery.git"
  }
}

Finally add this to "extra" section as first item in "installer-paths":

"extra": {
  "installer-paths": {
    "web/libraries/colorbox": ["npm-asset/jquery-colorbox"]
  }
}
  1. Run composer update.
  2. Include module's scss in droopler_subtheme style.scss file
@import "../../../../modules/contrib/d_p_gallery/scss/d_p_gallery";

Note: Any changes made in this file won't be caught by gulp watch.

  1. Run gulp compile in droopler_subtheme directory
  2. Enable module in Drupal.
  3. Enjoy the new paragraph :-).