Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Library Attach

Security covered Under active development 188 sites

This module allows you to attach libraries (collections of CSS and JavaScript) to specific content or views. It provides a filter to attach libraries based on selectors found in your content and options to embed libraries when entities or views are rendered.

Features (D9+)

  • Adds a filter format to attach libraries that have a filter-selector-css or filter-selector-xpath definition in their respective libraries.yml file and if the selector is found in the text.

Recommended Modules (D9+)

  • Select2, to help display a nicer UI for large select fields.

Features (D7)

  • Adds a Library reference field type so that libraries can be attached to individual entities when rendered.
  • Adds an option in the Manage display tab for entities to embed libraries when all entities of specific type with a specific view mode is rendered. For example, if you have a field formatter and you want to include some additional libraries to enhance it. The selected libraries for the view mode are automatically exported along with the rest of the view mode configuration in the field_bundle_settings_* variables.
  • Adds an option in the Views UI to attach libraries to when a specific view display is rendered. The selected libraries are automatically exported along with the View into code for deployment or Features. Requires Views 3.4 or higher.

Recommended Modules (D7)

  • Chosen, to help display a nicer UI on the library selection field.

Known Issues

Drupal 10–11

Ask your assistant about Library Attach

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • filter Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Feb 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.1 Stable 10–11 Feb 9, 2024