Atlanta, Georgia
Account created on 20 June 2007, over 17 years ago
  • Web Development Lead at O8Β 
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States Prodigy Atlanta, Georgia

Appreciate the follow up @vetchneons

πŸ‡ΊπŸ‡ΈUnited States Prodigy Atlanta, Georgia

Hard to follow what the URL pattern has to do with anything?

Using LinkIt,it should track the entity usage.

πŸ‡ΊπŸ‡ΈUnited States Prodigy Atlanta, Georgia

Prodigy β†’ created an issue.

πŸ‡ΊπŸ‡ΈUnited States Prodigy Atlanta, Georgia

Correct there is a composer.libraries.json file which specifies the location of the chosen library, so you can get away with just:

"extra": {
    "installer-paths": {
        "web/libraries/{$name}": [ "jjj/chosen" ]
    }
}

Although this works as well inside composer.json
Add the following entry to the root composer.json inside the "repositories" section:

        {
            "type": "package",
            "package": {
                "name": "jjj/chosen",
                "version": "2.2.1",
                "type": "drupal-library",
                "source": {
                    "url": "https://github.com/JJJ/chosen.git",
                    "type": "git",
                    "reference": "2.2.1"
                }
            }
        },

Then you can run the following command to install the library to the right folder:
composer require jjj/chosen:2.2.1

Production build 0.71.5 2024