Skip to content

webofficeit-official/wit_nwreadtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TYPO3 Extension wit_nwreadtime

Our new TYPO3 extension includes a view helper that calculates the estimated reading time for news extension, enhancing the user experience for your readers.

Installation

inorder to give composer support we are moving this extension to https://packagist.org/packages/woit/woit-nsreadtime.

Adding to your own sitepackage

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.

Argument

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

About

This extension is useful for displaying the read time for news article.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors