dev-master
9999999-devEEL Helper to estimate reading time of a document
MIT
The Requires
1.0.0
1.0.0.0EEL Helper to estimate reading time of a document
MIT
The Requires
EEL Helper to estimate reading time of a document
This package calculate a estimated reading time for the given document., (*1)
composer require ttree/eel-estimatedreadingtime
The package provide a service an EEL Helper and a Fusion prototype., (*2)
You can use the EEL Helper, if you have the content string in variable content
, like this:, (*3)
${EstimatedReadingTime.get(content)}
The method get
accept an addtionnal parmater, the reading speed, expresed in words per minute.
By default this value is 200. You can change the value in your Settings.yaml
or in the expression:, (*4)
${EstimatedReadingTime.get(content, 240)}
The Fusion prototype use the ContentCollection prototype provided by Neos, to render the content at the given path:, (*5)
prototype(You.Site:ReadingTimeLabel) < prototype(Neos.Fusion:Value) readingTime = Ttree.Eel.EstimatedReadingTime:Get { nodePath = 'main' } value = ${'Read the article (' + this.readingTime + ' min.)'} }
For a correct estimate, the document node must be available in the node
context variable., (*6)
Development sponsored by ttree ltd - neos solution provider., (*7)
We try our best to craft this package with a lots of love, we are open to sponsoring, support request, ... just contact us., (*8)
Licensed under MIT, see LICENSE, (*9)
EEL Helper to estimate reading time of a document
MIT
EEL Helper to estimate reading time of a document
MIT