In website operation, we all hope to provide visitors with the best possible browsing experience.One feature that seems minor but can significantly improve user satisfaction is to estimate the time required for users to read the article details page.This not only helps visitors quickly judge whether there is enough time to read the entire content, but also effectively improves the completion rate of the article reading, thereby indirectly optimizing the user engagement of the website.

English CMS as a fully functional and highly flexible content management system, provides powerful template tags and filters, making it very simple to implement this function.Below, let's step by step see how to estimate the reading time for your visitors on the article detail page of AnQiCMS.

Understanding the basis of estimating reading time: word count and average reading speed

To estimate the reading time of an article, we need two core data: the total number of words (or characters) in the article and a preset average reading speed.

  1. The acquisition of the total number of characters (or characters) in the article:The main content of the article in Aq CMS is usually stored inContentfield. We can througharchiveDetailThe tag gets the value of this field. Better yet, the Anqi CMS is built-in with a namewordcountThe template filter that can directly count the number of words (or characters) in text content, and can accurately handle both Chinese and English content.

  2. Setting of average reading speed:About the average reading speed, it is generally believed that the reading speed of adults is about 200 to 300 words per minute