Article Reader UX & Table of Contents icon

Article Reader UX & Table of Contents

Article Reader UX & Table of Contents upgrades Craft CMS 4.5+ and 5.x blogs, documentation hubs, and editorial sites with UTF-8 safe DOMDocument H2-H4 heading anchors, collapsible WCAG 2.2 AA Table of Contents navigation, multi-language reading time estimates, a sticky scroll progress bar, and automated Schema.org Article JSON-LD.

Key Features

  • UTF-8 Safe DOM Parsing: Use {{ entry.body | injectToc }} or {{ craft.articleUx.toc(entry.body) }} without breaking nested HTML tags — deduplicates repeated headings automatically.
  • Multi-Language Reading Time: {{ craft.articleUx.readingTime(entry.body) }} returns word count, minutes, label (4 min read), and ISO 8601 duration (PT4M).
  • Sticky Scroll Progress Bar: Zero-CLS role="progressbar" indicator using passive scroll listeners and prefers-reduced-motion support.
  • Copy Heading Anchors & Article JSON-LD: Clickable # anchor links + automated Schema.org Article JSON-LD with accurate wordCount and timeRequired.

Installation

composer require flexext/craft-article-reader-ux
php craft plugin/install article-reader-ux

Standard

Plus $5/year after one year.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
0
Version
1.0.2
License
Craft
Compatibility
Craft 4, Craft 5
Last release
December 1, 2026