Andrew Fletcher published: 5 August 2021 2 minutes read
Steps to get the Solr date range widget working.
Steps
Enable the Facets Range Widget sub-module.
Install the jQuery-ui-Slider-Pips library, as described in the README.txt file in that sub-module's folder. After playing with this for sometime to get it working, I found the best way to install is via composer.
composer require "bower-asset/jquery-ui-slider-pips:^1.11"
However, calling this command could produce the following error
[InvalidArgumentException] Could not find a matching version of package bower-asset/jquery-ui-slider-pips. Check the package spelling, your version constraint and that the package is available in a stability which matches your minimum-stability (dev).
To resolve this issue, in your composer.json file add the following lines to the repositories area:
{ "type": "composer", "url": "https://asset-packagist.org" },
So it will now appear as
"repositories": [ { "type": "composer", "url": "https://packages.drupal.org/8" }, { "type": "composer", "url": "https://asset-packagist.org" },
This action will install the latest version of range slider and required components. The response to this request will be
./composer.json has been updated Running composer update bower-asset/jquery-ui-slider-pips > DrupalProject\composer\ScriptHandler::checkComposerVersion Loading composer repositories with package information Updating dependencies Lock file operations: 3 installs, 0 updates, 0 removals - Locking bower-asset/jquery (3.6.0) - Locking bower-asset/jquery-ui (1.12.1) - Locking bower-asset/jquery-ui-slider-pips (v1.11.4) Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 3 installs, 0 updates, 0 removals - Downloading bower-asset/jquery (3.6.0) - Downloading bower-asset/jquery-ui (1.12.1) - Downloading bower-asset/jquery-ui-slider-pips (v1.11.4) - Installing bower-asset/jquery (3.6.0): Extracting archive - Installing bower-asset/jquery-ui (1.12.1): Extracting archive - Installing bower-asset/jquery-ui-slider-pips (v1.11.4): Extracting archive
Related articles
Andrew Fletcher
•
16 Jan 2025
get IP address from terminal OSX
When troubleshooting network issues or configuring devices, knowing your IP address can be essential. Whether you're connected via Wi-Fi, Ethernet, or tethering through a mobile provider, macOS offers powerful built-in tools to quickly identify your IP address. Here's a practical guide tailored to...
Andrew Fletcher
•
07 Jan 2025
Managing DDEV environment troubleshooting and setting up multiple Drupal projects
DDEV has become a popular tool for local web development, offering a streamlined approach to managing Docker-based environments. However, setting up and managing DDEV projects, particularly with the latest versions of Docker Desktop, can present challenges. This article guides you through resolving...
Andrew Fletcher
•
28 Dec 2024
Optimising file transfers by improving efficiency from cp to rsync
Transferring files between development and production environments is a critical task in the deployment process. However, I continue to come across multiple approaches that scale from awesome automation using pipelines to the basic of direct command line entry. Where the basic approaches rely on...