Skip to content

12StarsMedia/count_and_limit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Count and Limit fieldtype for Statamic

A Statamic fieldtype to count and/or limit character input. Excellent for use with meta tags.

Changelog

  • 0.1.2 - We need the previously entered value, silly. Also classes can't start with numbers. That's so bogus.
  • 0.1.1 - Ensure ID's don't start with numbers
  • 0.1.0 - Initial release

Installation

Copy the count_and_limit folder to the _add_ons folder of your Statamic website.

Using the fieldtype

In your desired fieldset, give the field a type of count_and_limit

// meta-data.yaml

fields:
  seo_title:
    type: count_and_limit
    count: true
    limit: 44
    display: SEO Title

Parameters

  • count: (Boolean) Do you want to display the character count?
  • limit: (Integer) The number of charaters to limit input to
  • display: (String) The label of the field

Authors

Versioning

This plugin follows Semantic Versioning

Legal

12 Stars Media, © 2015

@12starsmedia - @candidio

Licensed under the MIT License

About

A Statamic fieldtype to count and/or limit character input

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages