GithubHelp home page GithubHelp logo

craft-readtime's Introduction

Hi there 👋

craft-readtime's People

Contributors

jalendport avatar lukeyouell avatar saboteur777 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

craft-readtime's Issues

Craft 5 Compatibility

I realize this is a fairly simple plugin. Do you expect that it will be updated for Craft 5 soon?

Control pluralization?

I'd like to make the word "minutes" into a singular adjective, thus:
"10 minute read" as in, "This article is a ten-minute read."

Possible?

Add "Read Time" Field Storage in Database

Hello,

We are using your "Read Time" plugin and would like to request a modification. Specifically, we need the plugin to add an additional field for the "read time" value on every article entry. This value should be stored in the database, allowing us to use it for filtering functionality on our blog page.

Thank you for considering our request. We believe this feature would significantly enhance the usability of your plugin.

Looking forward to your response.

This plugin seems not to work anymore.

I am on the latest craft version and the |readTime(false) filter send back a TimeModel with 0 minutes and 0 seconds anytime.

I tried it on the entry (a blogentry with a matrix field).
And I tried it to use with the matrix field itself (wich holds a redactor field).
I did even try to use it directly on the matrix block itself (not on the array of blocks)

Nothing worked sadly :(.

Support for Neo fields

Is there any way to make this work with Neo fields? Currently if I pass in the the Neo field it always outputs 0. If I pass in the whole entry it always outputs 5.

Option for selecting a locale

Very useful plugin.

I am preparsing the read time to a custom field on saving an entry for improved performance in my templates. The plugin honors my cp-Language and correctly uses »12 Minuten« instead of »12 minutes«. If however I am resaving entries via console using resave/entries which I need to do from time to time, all read time values in my custom field are being saved in the english version again.

Is there a way to lock the locale to, say, de-DE?

Strip html from strings

I noticed that readTime filter does not strip HTML from strings - this can sometimes giver false results.

Get the readtime of a matrix field

It would be great if you could access the readtime of a matrix field, like so:

{{ readTime(entry.matrixField) }}

Currently this just results in:

Calling unknown method: craft\elements\db\MatrixBlockQuery::getFieldLayout()

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.