2017 © Pedro Peláez
 

contao-bundle contao-input-counter-bundle

This bundle offers character counting for backend fields for a better editing usability.

image

heimrichhannot/contao-input-counter-bundle

This bundle offers character counting for backend fields for a better editing usability.

  • Thursday, July 19, 2018
  • by digitales@heimrich-hannot.de
  • Repository
  • 7 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Contao Input Counter Bundle

This bundle offers character counting for backend fields for a better editing usability., (*1)

Installation

Install via composer: composer require heimrichhannot/contao-input-counter-bundle, (*2)

Configuration

Configuration is easy as adding the following code to a config.php:, (*3)

$GLOBALS['HUH_INPUT_COUNT'] = [
    [
        'table'  => 'tl_news', // the dca table name
        'fields' => [
            [
                'name' => 'headline', // the field's name
                'max'  => 50, // the maximum character count (if not set, the field's maxlength eval property is used if available)
                'skipColoring' => true // activate/deactivate coloring (default: false)
            ],
            // ...
        ]
    ],
    // ...
];

Known limitations

  • currently no support for tinyMCE due to the lack of having an event for every content change in tinyMCE (keyup, change, cut and paste work, but for style changes there's no event)

The Versions