The library content module creates a content entity for creates JS and CSS libraries as content.
These libraries can be included on pages by adding an reference field that points to library content entities.
Features
Use this module if content authors are required to include custom JS or CSS in their content. This modules gives author a away to create and maintain reusable JS/CSS inside of Drupal. This module is meant to help when there is "one-off-ish" JS/CSS that appears multiple times, but only on a few pages.
Post-Installation
To use this module, you have to create an entity reference field that references library content entities on the content type you'd like to use library contents on.
Once the reference is created, the references library content modules is automatically included when that content is rendered.
Additional Requirements
The Codemirror Editor - This is used to provide the editor interface.
Recommended modules/libraries
Are there any projects that enhance or improve the functionality of this project?
Similar projects
Libraries API - This module lets you definitely JS/CSS libraries, but as configuration instead of content.
Ask your assistant about Library Content
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
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.x-dev | Dev | 11 | Oct 14, 2026 |