woit/woit-nsreadtime

This extension is useful for displaying read time in news detail view.

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

Language:HTML

Type:typo3-cms-extension

v1.1.1 2024-01-25 09:33 UTC

This package is auto-updated.

Last update: 2024-04-25 10:15:32 UTC


README

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

Install this extension via composer req woit/woit-nsreadtime and activate the extension in the Extension Manager of your TYPO3 installation.

Adding to your own sitepackage

Add namespace in your code

<html xmlns:time="http://typo3.org/ns/Woit/WoitNsreadtime/ViewHelpers" data-namespace-typo3-fluid="true"></html>

or

{namespace time=Woit\WoitNsreadtime\ViewHelpers}

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 woith the ID of your current news item. This code will render the estimated reading time for your news post based on the content.