/TextareaCounter

TextareaCounter for Processwire

Primary LanguagePHP

Textarea Counter for Processwire

What it does

The module adds a possibility to define a character/word limit to textarea inputs in Processwire. It will show a live count when editing these fields.

Installation

Just drop the files TextareaCounter.module and TextareaCounter.js in a folder called TextareaCounter in your site's modules directory. Install from the backend as you're used to.

How to use it

To use it with a specific Textarea input field, edit the desired input in the backend and add a limit for characters and/or words. You should be ready to go.

Credit

Most of the code was helpfully provided by Soma in the Processwire forums. juagarc4 helped making it useable inside repeater fields. Martijn added the truncation option.

Still missing

  • Proper documentation
  • An expansion to bring this functionality to flat text inputs as well.