Bootstrap 5 Package icon
Module Id
Bootstrap5
Author
pvollenweider
Updated
Requires Jahia
8.2.0.0
Category
Templating and extensions
Status
COMMUNITY info

Bootstrap 5 Package group_work

bootstrap templates layout

This project is a Bootstrap 5 implementation of http://getbootstrap.com for the Digital Experience Platform.

Get the full documentation on the GitHub page https://github.com/Jahia/bootstrap5

This package contains all the Bootstrap 5 modules:

  • bootstrap5-core contains all assets (CSS and JS files), and also the main mixin bootstrap5mix:component is used on all bootstrap components. It also contains the component Version that displays the embedded version of bootstrap in an alert box, on edit mode.

  • bootstrap5-components contain all the components, definitions, views, and logic.

  • bootstrap5-templates-starter is a template set that allows you to play with the Bootstrap 5 components. This template set provides only an empty page but adds the related dependencies, and supports the RTL

Embedded Modules

Changelog 2.4.0

Compatibility Notice

  • This version requires Jahia 8.2 or higher.
  • All dependencies on Spring Framework have been removed to simplify the codebase and eliminate unused dependencies.

New Features

  • Enhanced Navbar Customization
  • Introduced two new configurable properties:
    • liClass: defines the CSS class for each <li> item in the navbar (default: nav-item).
    • navLinkClass: defines the CSS class for each <a> link in the navbar (default: nav-link).
  • These properties are available through the bootstrap5mix:customizeNavbar mixin and supported in both JSP and Groovy-based views.
  • Improved CKEditor Integration
  • Added “Remove Format” button to clear inline formatting.
  • Introduced a custom “Wash” button to clean up pasted HTML (e.g., from MS Word), removing unnecessary tags and styles.
  • Integrated purify.min.js and beautify-html.min.js to sanitize and beautify content.

Enhancements

  • Refactored navbar.basenav-multilevel.groovy
  • Simplified rendering logic with reusable helper methods.
  • Improved readability and maintainability of the recursive menu generation.
  • Enhanced support for jnt:pagejnt:nodeLink, and jnt:externalLink menu items.
  • Security & Compatibility
  • Added a safety check in ckconfig.js to prevent errors when accessing combo_inlinestyles if the UI component is not present in CKEditor.

Documentation

  • Updated docs/navbar.md to describe the new customizable navbar properties.
  • Updated docs/text.md and replaced text.png to reflect the new CKEditor toolbar with format-cleaning options.

FAQ

If you find any issue of if you want to propose some improvement, please use the dedicated tools from the developer page https://github.com/Jahia/bootstrap5

How To Install

The easiest way to install Bootstrap 5 on your platform using the package.
Please read the dedicated tutorial on https://academy.jahia.com/training-kb/tutorials/administrators/installing-a-module and select the Bootstrap 5 package from the store.

License

MIT License

Copyright 2020 Philippe Vollenweider

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.