Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.33 KB

README.md

File metadata and controls

53 lines (32 loc) · 1.33 KB

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