Add Content - Time Estimation Plugin (Reading Time for Articles) #47446
CSGoat0
started this conversation in
1. Feature Evaluation
Replies: 1 comment 7 replies
-
|
Do we need a plugin for this feature? Word count and estimated reading time need only two lines of code in the article layout, a few params in the article would do it. But a plugin could add a scroll-spy (progress bar) which shows where the user is scrolling and add possibility to use different words-per-minute values for the content languages. English for example with 230 words, German with 210 words, the scoll spy as horizontal or vertical bar, with different params. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Title: Add Content - Time Estimation Plugin (Reading Time for Articles)
Category: New Feature / Plugin
Description
I'd like to propose adding a new Content - Time Estimation Plugin that automatically calculates and displays estimated reading time for articles.
I initially opened a PR for this (#47392), but it was suggested that I start with a discussion first. I'm happy to gather feedback before finalizing.
Why This Feature?
Currently, Joomla articles don't display estimated reading time. This is a common feature on modern websites that helps users gauge content length and decide whether to read now or save for later. It improves user experience and engagement.
Proposed Solution
The plugin:
onContentPrepare– counts words from raw HTML contentonContentAfterTitle– injects the badge into theafterDisplayTitlepositionAdmin Configuration
The plugin includes a simple parameter: Words Per Minute (default: 200). Administrators can adjust this based on their audience's reading speed.
Frontend Display
The reading time badge appears automatically below the article title, as shown in the screenshot.
Notes / Open Questions
• UI: I know the current UI is not the best, I will work on it once the feature is approved.
• WPM: It will be set to 200 wpm by default.
• Plugin: I have the plugin code without missing with SQL yet, I have tested it and it works fine with Joomla. I don't know if it's supposed not to work without adding SQL, but it worked!
• SQL: I have told that I should follow other plugins and add the SQL needed, I intend to do it once it's approved.
Next Steps
If the feature is approved, I will:
Looking forward to your thoughts and suggestions!
PR Reference: #47392
Beta Was this translation helpful? Give feedback.
All reactions