Our new TYPO3 extension includes a view helper that calculates the estimated reading time for news extension, enhancing the user experience for your readers.
inorder to give composer support we are moving this extension to https://packagist.org/packages/woit/woit-nsreadtime.
Add namespace in your code
{namespace time=Wit\WitNwreadtime\ViewHelpers}or
<html xmlns:time="http://typo3.org/ns/Wit/WitNwreadtime/ViewHelpers" data-namespace-typo3-fluid="true">You can use either one of them to add namespace in your template
In your news template, add the following code:
<time:readtime newsId="{CURRENT_NEWS_ID}" />Replace CURRENT_NEWS_ID with the ID of your current news item. This code will render the estimated reading time for your news post based on the content.
If you add format="true" it will render as 00:00:00
<time:readtime newsId="{CURRENT_NEWS_ID}" format="true" />The default value will be 00 hours, 00 minutes, 00 seconds