Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Bootstrap Library

Security covered

Part of the Bootstrap ecosystem · 36 projects

View on drupal.org

Drupal 8 is here!!

Drupal 8 version includes local libraries as well as external CDN libraries.
Drupal 8 version of the module does not depend on libraries module.

This module loads via libraries , regardless of the theme you are using. It does nothing else.

When using Bootstrap themes is particularly helpful to:

  1. Correct Browser Support issues, installing respond.js.
  2. Update your Bootstrap version over your current theme options.
  3. Advanced CDN files loading.

This module does not depend on a specific version of Bootstrap, it just load the version you install, with the components you install on it, either complete or customize.

Installation Drupal 8

  1. Download Boostrap files on /libraries/bootstrap.
  2. Configure on which pages you want to load the libraries (by default everything but admin/*).
  3. Configure on which themes you want to load the libraries.

or

  1. On your theme root run composer require drupal/bootstrap_library
  2. Choose load libraries "locally composer"
  3. Advanced

    Code snipped for Drupal 8, to activate the library version directly on your module (hook_page_attachments()) or theme (hook_preprocess_page()):

    <?php
      if (\Drupal::moduleHandler()->moduleExists('bootstrap_library')) {
        $library = theme_get_setting('bootstrap_barrio_library');
        switch ($library) {
          case 'cdn' :
            $variables['#attached']['library'][] = 'bootstrap_library/bootstrap-cdn';
            break;
          case 'production':
            $variables['#attached']['library'][] = 'bootstrap_library/bootstrap';
            break;
          case 'development':
            $variables['#attached']['library'][] = 'bootstrap_library/bootstrap-dev';
            break;
        }
      }
    ?>

    Installation Drupal 7

    1. Download Boostrap files on /sites/all/libraries/bootstrap.
    2. Install and enable Boostrap Library Module.
    3. Configure on which pages you want to load the libraries (by default everything but admin/*).
    4. Configure on which themes you want to load the libraries.

    Compatibility with Bootstrap Theme

    This module is fully compatible with the Bootstrap Theme.

    Mantainers of this distribution:

Sponsored by:

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

Tracked releases
2
Tracked since
Jan 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.2 Stable Jan 18, 2023
2.0.x-dev Dev Jan 18, 2023