Example of displaying enhanced button links
Configuration form for Enhanced Button Link
Enhanced Button Link Formatter
Enhanced Button Link Widget

This module enhances core link field widget and formatter in order to render a link as Bootstrap button. It has ability to configure style, size, status (if disabled) and target.

Compatible with Drupal 8.8+, 9.x and 10.x. That means the module doesn't work with 8.7.x and older versions.

Requirements

  • Link (Drupal core) module
  • Bootstrap based theme (for example Bootstrap or Barrio).

Features

  • Enhanced Button Link field formatter.
  • Enhanced Button Link field widget.
  • Configuration form.

Installation

  • Install as contrib module
  • Install and enable theme which supports bootstrap. Or as an option you can load bootstrap library.

Configuration

  1. Navigate to Administration > Structure > Content types [Content type to edit] > Manage form display.
  2. Select the 'Enhanced Button Link' as widget for the Link field. Save changes.
  3. Navigate to Administration > Structure > Content types [Content type to edit] > Manage display.
  4. Select the 'Enhanced Button Link' as formatter for the Link field. Save changes.
  5. Navigate to Administration > Content authoring > Enhanced Button Link Settings to manage available button styles (types) and override options.
  6. Now it is possible to manage link options to render it as a Bootstrap button.

🇺🇦

This module is maintained by Ukrainian developers. Please consider supporting Ukraine in a fight for their freedom and safety of Europe.
Supporting organizations: 

Project information

Releases