Drupal is a registered trademark of Dries Buytaert
Search API Solr 4.4.0 Minor update available for module search_api_solr (4.4.0). Page Manager 8.x-4.0 Major update available for module page_manager (8.x-4.0). Trash 3.1.0-beta2 New beta version released for module trash (3.1.0-beta2). Commerce AutoSKU 3.0.1 Minor update available for module commerce_autosku (3.0.1). Custom Field 4.0.10 Minor update available for module custom_field (4.0.10). Alternative login ID & display names 2.0.12 Minor update available for module alt_login (2.0.12). EntityReference UUID 3.0.1 Minor update available for module entity_reference_uuid (3.0.1). LocalGov Publications Importer 1.1.1 Minor update available for module localgov_publications_importer (1.1.1). Configuration Override Warn 8.x-1.6 Module config_override_warn updated after 10 months of inactivity (8.x-1.6). Table Alternate Rows Module table_altrow crossed 1,000 active installs.

EZ Likes

No security coverage
View on drupal.org

EZ Likes is a lightweight Drupal module that automatically attaches a Share action button to any node page using Layout Builder for its display. It tracks per-visitor engagement in the database without any page reloads, and provides administrators with a built-in analytics report showing share counts per node, exportable to CSV. No contributed module dependencies are required beyond Drupal core.

Features

EZ Likes injects a compact action bar at the bottom of every full-view-mode node page that uses Layout Builder.

Visitors can:

  • Share a node — copies the canonical page URL to the clipboard with a toast notification. It falls back to a textarea copy method on older browsers.

Share interactions are tracked and deduplicated so administrators can see how often content is being shared.

This module is useful for:

  • News sites, knowledge bases, or editorial platforms that need lightweight content engagement metrics without a full third-party analytics integration.
  • Intranet or community portals where user sharing helps surface popular content.
  • Any Layout Builder–driven site that needs a simple, self-hosted sharing system with no external service dependency.

Unique features include:

  • Zero contributed-module dependencies — works with Drupal core alone.
  • Data is never destroyed on uninstall — tables are renamed to a preserved backup and automatically restored on reinstall.
  • Per-path inclusion and exclusion rules with wildcard support let you control exactly which pages show the buttons.
  • A configurable button color with automatic dark, tint, and shadow variants computed at render time.
  • Full accessibility with aria-label and aria-live regions on all interactive elements.
  • A built-in admin report with sortable columns, content-type and title filters, per-node event detail popups, and one-click CSV export.

Post-Installation

After enabling the module with drush en ez_likes -y && drush cr or through Admin > Extend, the ez_likes_events database table is created automatically.

The button appears immediately on all full-view-mode node pages whose display uses Layout Builder. No further configuration is required for a default setup.

Optional configuration is available at Admin > Configuration > Content > EZ Likes (/admin/config/content/ez-likes).

  • Enabled content types — restrict buttons to specific node types. Leave all unchecked to show them on every type.
  • Included pages — force the button onto specific paths, with newline-separated wildcard support.
  • Excluded pages — always suppress the button on these paths. This has the highest priority and overrides all other rules.
  • Button color — set a hex color code, with tint and shadow variants computed automatically.
  • Show Share button — toggle the clipboard-copy Share button on or off.

Visibility logic priority: Excluded pages > Included pages > Content-type allowlist.

To view engagement analytics, go to Admin > Reports > EZ Likes Report (/admin/reports/ez-likes). This requires the access ez likes report permission. The report shows share counts for every node with at least one recorded interaction, and it supports sorting, filtering by content type and title, and CSV export.

Additional Requirements

EZ Likes requires only Drupal core modules:

  • node (core)
  • layout_builder (core) — button is injected only on displays that use Layout Builder.
  • user (core)
  • system (core)

No contributed modules, third-party PHP libraries, or external JavaScript libraries are required.

Supporting This Module

If you find this module useful, the best ways to support it are:

  • Report bugs and feature requests in the issue queue.
  • Submit patches or merge requests for open issues.
  • Write a case study or post about how you use it so other site builders can learn from real-world usage.

Connect with Grazitti Interactive

          

Activity

Total releases
2
First release
Jul 2026
Latest release
14 hours ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable Jul 28, 2026
1.0.x-dev Dev Jul 28, 2026