Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

2.1.8

Compare
Choose a tag to compare
@balsama balsama released this 20 Sep 19:57
· 58 commits to 8.x-2.x since this release

Changelog

  • Added the ability to easily crop images contained in media entities and use the cropped version when embedding or selecting the media item. (Issue #2690423)
  • Lightning Media now includes a bulk upload form that allows you to create multiple image media entities at once. (#2672038)
  • You can now run Lightning's manual update steps via an interactive Drupal Console command. (GitHub #462)
  • OAuth key pairs:
    • Lightning will no longer try to guess where keys should be stored and won't generate the keys until an administrator triggers that action. (GitHub #445)
    • Key pairs are now generated with 600 permissions. (GitHub #443)
    • Better error messages are shown if the system encounters an error when generating OAuth key pairs (GitHub #440)
  • Lightning no longer patches Drush and therefore has no opinion about which version of Drush you use in your project. (GitHub #459)
  • Page manager is no longer included in the codebase. (GitHub #466)
  • You can now choose to hide the links to API docs shown on entity bundles via a config option. (GitHub #435)
  • Fixed a bug where Entity Browser filters might not work after updating to core 8.3.7. (GitHub #441)
  • Operations is now the last column on the admin/content view. (GitHub #429)

2.1.7 to 2.1.8 Manual Update Steps

Lightning now provides a Drupal Console command to automate Manual Update steps. To interactively apply the updates, run the following command after performing the standard database updates via:

drupal update:lightning

To run all available configuration updates without any prompting, use:

drupal update:lightning  --no-interaction

If you'd rather do the updates manually, follow the instructions below.

  • Lightning now ships with support for image cropping, using the Image Widget Crop module. To use it for the Image media bundle (the default behavior in new Lightning sites), do the following:
    • Install the Image Widget Crop module.
    • Visit Structure > Media bundles. For the Image media bundle, choose "Manage form display".
    • If the Image field is enabled, set its widget type to "ImageWidget crop", and configure it like so:
      • Only "Freeform" should be selected for "Crop Type".
      • "Always expand crop area" should be checked.
      • "Show links to uploaded files" should be checked.
      • "Show Remove button" should be checked.
    • Press "Update", then "Save".
    • Go to the "Media browser" tab. If the Image field is enabled, set its widget type to "ImageWidget crop" and configure it like so:
      • Only "Freeform" should be selected for "Crop Type".
      • "Always expand crop area" should be checked.
      • "Show links to uploaded files" should NOT be checked.
      • "Show Remove button" should NOT be checked.
    • Press "Update", then "Save".
    • By default, Image Widget Crop uses a CDN-hosted copy of the Cropper JavaScript library. Lightning includes a copy of Cropper as well, which you can use instead of the CDN-hosted version if you prefer to. To use Lightning's included copy of the library, visit *Configuration > Media > ImageWidgetCrop setting and make the following changes under "Cropper library settings":
      • Set "Custom Cropper library" to
        libraries/cropper/dist/cropper.min.js.
      • Set "Custom Cropper CSS file" to
        libraries/cropper/dist/cropper.min.css.
  • Lightning now has support for bulk uploading media assets. To enable this feature, install the Bulk Media Upload module from the Lightning Package.
  • New installs of Lightning that include the Workflow component will now place the Operations drop-button as the last column of the /admin/content view.
    To make this change in your existing Lightning installation, edit the content view, move the Operations field to the end of the list of fields, and save the changes.