2017 © Pedro Peláez
 

silverstripe-module silverstripe-fieldcounter

Adds a counter to defined fields to show remaining characters

image

plato-creative/silverstripe-fieldcounter

Adds a counter to defined fields to show remaining characters

  • Friday, April 21, 2017
  • by mediabeast
  • Repository
  • 2 Watchers
  • 3 Stars
  • 6,723 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 12 Versions
  • 5 % Grown

The README.md

Silverstripe FieldCounter

Shows a field counter on specified fields in the SilverStripe CMS, (*1)

Usage

To add the field counter to a Silverstripe field in the CMS you need to add:, (*2)

TextField::('myfield')->setAttribute('data-fieldcounter', 140);

If you require different limits change the 140. Note: Adding this to a TextareaField prevents new lines., (*3)

If you want to prevent more text than your limit, use the built in HTML attribute maxlength e.g., (*4)

TextField::('myfield')->setAttribute('maxlength', 140);

Install

SilverStripe 3, (*5)

$ composer require plato-creative/silverstripe-fieldcounter:1.*, (*6)

SilverStripe 4, (*7)

$ composer require plato-creative/silverstripe-fieldcounter:2.*, (*8)

Documentation

See Docs, (*9)

The Versions

21/04 2017

dev-SS3

dev-SS3

Adds a counter to defined fields to show remaining characters

  Sources   Download

The Requires

 

by Myles Derham

silverstripe counter fields limit creative plato

21/04 2017

1.1.3

1.1.3.0

Adds a counter to defined fields to show remaining characters

  Sources   Download

The Requires

 

by Myles Derham

silverstripe counter fields limit creative plato

21/04 2017

dev-master

9999999-dev

Adds a counter to defined fields to show remaining characters

  Sources   Download

The Requires

 

by Myles Derham

silverstripe counter fields limit creative plato

21/04 2017

1.1.2

1.1.2.0

Adds a counter to defined fields to show remaining characters

  Sources   Download

The Requires

 

by Myles Derham

silverstripe counter fields limit creative plato

13/02 2017

1.1.1

1.1.1.0

Adds a counter to defined fields to show remaining characters

  Sources   Download

The Requires

 

by Myles Derham

silverstripe counter fields limit creative plato

13/02 2017

1.1.0

1.1.0.0

Adds a counter to defined fields to show remaining characters

  Sources   Download

The Requires

 

by Myles Derham

silverstripe counter fields limit creative plato

13/02 2017

2.1.0

2.1.0.0

Adds a counter to defined fields to show remaining characters

  Sources   Download

The Requires

 

by Myles Derham

silverstripe counter fields limit creative plato

20/01 2017

2.0.2

2.0.2.0

Adds a counter to defined fields to show remaining characters

  Sources   Download

The Requires

 

by Myles Derham

silverstripe counter fields limit creative plato

20/01 2017

2.0.1

2.0.1.0

Adds a counter to defined fields to show remaining characters

  Sources   Download

The Requires

 

by Myles Derham

silverstripe counter fields limit creative plato

20/01 2017

2.0.0

2.0.0.0

Adds a counter to defined fields to show remaining characters

  Sources   Download

The Requires

 

by Myles Derham

silverstripe counter fields limit creative plato

13/01 2017

v1.0.1

1.0.1.0

Adds a counter to defined fields to show remaining characters

  Sources   Download

The Requires

 

by Myles Derham

silverstripe counter fields limit creative plato

12/01 2017

v1.0.0

1.0.0.0

Adds a counter to defined fields to show remaining characters

  Sources   Download

The Requires

 

by Myles Derham

silverstripe counter fields limit creative plato